Permalink
Browse files

CLI Server was sending "Connection: closed" instead of "Connection: c…

…lose"
  • Loading branch information...
1 parent e83f026 commit 16748fe0fa927486e029e90b70970d4724a5a72e @rlerdorf rlerdorf committed Mar 2, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 NEWS
  2. +1 −1 sapi/cli/php_cli_server.c
View
@@ -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)
@@ -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) /* {{{ */

0 comments on commit 16748fe

Please sign in to comment.