From 12f06f2467f7eb8f5f34a2a6af4d000388065b5f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 27 May 2016 18:58:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRequest=E7=B1=BB=E7=9A=84isss?= =?UTF-8?q?l=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Request.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/think/Request.php b/library/think/Request.php index f863619f..0abfbba9 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -640,6 +640,8 @@ class Request return true; } elseif (isset($server['SERVER_PORT']) && ('443' == $server['SERVER_PORT'])) { return true; + } elseif (isset($server['HTTP_X_FORWARDED_PROTO']) && 'https' == $server['HTTP_X_FORWARDED_PROTO']) { + return true; } return false; }