Skip to content

Commit

Permalink
NGINX HTTPS无法签名 (#441)
Browse files Browse the repository at this point in the history
判断协议的地方有类型bug,vardump($_SERVER['SERVER_PORT'])在我这边是string类型。
  • Loading branch information
ares333 authored and overtrue committed Jun 17, 2016
1 parent ea56ad4 commit e51463b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function current()
{
$protocol = (!empty($_SERVER['HTTPS'])
&& $_SERVER['HTTPS'] !== 'off'
|| $_SERVER['SERVER_PORT'] === 443) ? 'https://' : 'http://';
|| (int)$_SERVER['SERVER_PORT'] === 443) ? 'https://' : 'http://';

return $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
}
Expand Down

0 comments on commit e51463b

Please sign in to comment.