cvs: php4 /main SAPI.c
| From: | Rasmus Lerdorf | Date: | Sat, 01 Jul 2000 18:06:11 +0000 |
| Subject: | cvs: php4 /main SAPI.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-580@lists.php.net to get a copy of this message | ||
rasmus Sat Jul 1 11:06:11 2000 EDT
Modified files:
/php4/main SAPI.c
Log:
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)
Index: php4/main/SAPI.c
diff -u php4/main/SAPI.c:1.76 php4/main/SAPI.c:1.77
--- php4/main/SAPI.c:1.76 Fri Jun 23 06:05:06 2000
+++ php4/main/SAPI.c Sat Jul 1 11:06:11 2000
@@ -382,7 +382,7 @@
/* 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;