diff --git a/NEWS b/NEWS index 6ccae79d..662bac22 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/src/mod_scgi.c b/src/mod_scgi.c index 2122af91..9b2b3256 100644 --- a/src/mod_scgi.c +++ b/src/mod_scgi.c @@ -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; }