]> granicus.if.org Git - php/commitdiff
CLI Server was sending "Connection: closed" instead of "Connection: close"
authorRasmus Lerdorf <rasmus@php.net>
Fri, 2 Mar 2012 03:38:04 +0000 (03:38 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 2 Mar 2012 03:38:04 +0000 (03:38 +0000)
NEWS
sapi/cli/php_cli_server.c

diff --git a/NEWS b/NEWS
index d8fd8fc981b0469e0c0dd791232280f36c66386e..fc1218b93a8c95a5d17a761c61506d03c62c3a45 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2012, PHP 5.4.1 RC1
 
+- CLI Server:
+  . "Connection: close" instead of "Connection: closed" (Rasmus)
+
 - Core:
   . Fixed bug #61225 (Incorect lexing of 0b00*+<NUM>). (Pierrick)
   . Fixed bug #61165 (Segfault - strip_tags()). (Laruence)
index e8b626197832bf5e757ba7d55e6b5c9d5d679aee..11c3530318dd1a5672584801c952711e2502a075 100644 (file)
@@ -351,7 +351,7 @@ static void append_essential_headers(smart_str* buffer, php_cli_server_client *c
                        smart_str_appendl_ex(buffer, "\r\n", 2, persistent);
                }
        }
-       smart_str_appendl_ex(buffer, "Connection: closed\r\n", sizeof("Connection: closed\r\n") - 1, persistent);
+       smart_str_appendl_ex(buffer, "Connection: close\r\n", sizeof("Connection: close\r\n") - 1, persistent);
 } /* }}} */
 
 static const char *get_mime_type(const char *ext, size_t ext_len) /* {{{ */