Fix scgi HTTP/1.* status parsing (#1638), found by met@uberstats.com

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2223 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.20
Stefan Bühler 2008-07-28 08:43:23 +00:00
parent 543830266c
commit a70ba6c625
2 changed files with 3 additions and 3 deletions

1
NEWS
View File

@ -30,6 +30,7 @@ NEWS
* close connection after redirect in trigger_b4_dl (thx icy)
* close connection in mod_magnet if returned status code
* fix bug with IPv6 in mod_evasive (#1579)
* fix scgi HTTP/1.* status parsing (#1638), found by met@uberstats.com
- 1.4.19 - 2008-03-10

View File

@ -1686,9 +1686,8 @@ static int scgi_response_parse(server *srv, connection *con, plugin_data *p, buf
status = strtol(s+9, NULL, 10);
if (con->http_status >= 100 &&
con->http_status < 1000) {
/* we expected 3 digits and didn't got them */
if (status >= 100 && status < 1000) {
/* we expected 3 digits got them */
con->parsed_response |= HTTP_STATUS;
con->http_status = status;
}