summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2000-07-01 18:06:11 +0000
committerRasmus Lerdorf <rasmus@php.net>2000-07-01 18:06:11 +0000
commit2b61d55b1df84417c603c9adebb8bb5a2f6cf9cb (patch)
tree27b55ab042d022c6424585436b4afc87f75929e8
parent50e9b1fe36f05f07f253bc05391ab95f0d493e52 (diff)
downloadphp-git-2b61d55b1df84417c603c9adebb8bb5a2f6cf9cb.tar.gz
This is documented to not be case sensitive and it is not case sensitive
in PHP 3, so let's not make it case sensitive. @Make the special Header("http/...") response be case insensitive like 3.0 (Rasmus)
-rw-r--r--main/SAPI.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index fbffdcae75..5b372f2a50 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -382,7 +382,7 @@ SAPI_API int sapi_add_header(char *header_line, uint header_line_len, zend_bool
/* Check the header for a few cases that we have special support for in SAPI */
if (header_line_len>=5
- && !memcmp(header_line, "HTTP/", 5)) {
+ && !strncasecmp(header_line, "HTTP/", 5)) {
/* filter out the response code */
SG(sapi_headers).http_response_code = sapi_extract_response_code(header_line);
SG(sapi_headers).http_status_line = header_line;