]> granicus.if.org Git - php/commitdiff
This is documented to not be case sensitive and it is not case sensitive
authorRasmus Lerdorf <rasmus@php.net>
Sat, 1 Jul 2000 18:06:11 +0000 (18:06 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sat, 1 Jul 2000 18:06:11 +0000 (18:06 +0000)
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

index fbffdcae756f2238ed22016309d2177a0704d609..5b372f2a50b6d440fc634b73c9c8b6588ff2e079 100644 (file)
@@ -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;