From 2b61d55b1df84417c603c9adebb8bb5a2f6cf9cb Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sat, 1 Jul 2000 18:06:11 +0000 Subject: [PATCH] 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) --- main/SAPI.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1