Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…lose"
  • Loading branch information...
commit 16748fe0fa927486e029e90b70970d4724a5a72e 1 parent e83f026
@rlerdorf rlerdorf authored
Showing with 4 additions and 1 deletion.
  1. +3 −0  NEWS
  2. +1 −1  sapi/cli/php_cli_server.c
View
3  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)
View
2  sapi/cli/php_cli_server.c
@@ -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) /* {{{ */
Please sign in to comment.
Something went wrong with that request. Please try again.