mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正response类的sendHttpStatus方法
This commit is contained in:
@@ -156,10 +156,10 @@ class Response
|
|||||||
505 => 'HTTP Version Not Supported',
|
505 => 'HTTP Version Not Supported',
|
||||||
509 => 'Bandwidth Limit Exceeded',
|
509 => 'Bandwidth Limit Exceeded',
|
||||||
];
|
];
|
||||||
if (isset($_status[$code])) {
|
if (isset($_status[$status])) {
|
||||||
header('HTTP/1.1 ' . $code . ' ' . $_status[$code]);
|
header('HTTP/1.1 ' . $status . ' ' . $_status[$status]);
|
||||||
// 确保FastCGI模式下正常
|
// 确保FastCGI模式下正常
|
||||||
header('Status:' . $code . ' ' . $_status[$code]);
|
header('Status:' . $status . ' ' . $_status[$status]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user