From 80c0a1189154e30b77d1f7d7ea3c05385b7825de Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 9 Dec 2015 22:08:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3response=E7=B1=BB=E7=9A=84sen?= =?UTF-8?q?dHttpStatus=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/response.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/response.php b/library/think/response.php index 74612e3a..9e0856e6 100644 --- a/library/think/response.php +++ b/library/think/response.php @@ -156,10 +156,10 @@ class Response 505 => 'HTTP Version Not Supported', 509 => 'Bandwidth Limit Exceeded', ]; - if (isset($_status[$code])) { - header('HTTP/1.1 ' . $code . ' ' . $_status[$code]); + if (isset($_status[$status])) { + header('HTTP/1.1 ' . $status . ' ' . $_status[$status]); // 确保FastCGI模式下正常 - header('Status:' . $code . ' ' . $_status[$code]); + header('Status:' . $status . ' ' . $_status[$status]); } }