Accept \n as line ending when parsing URL.

This fixes "HTTP 0.9" requests.
This commit is contained in:
Emil Mikulic 2011-01-19 01:11:43 +11:00
parent 97b7be4f79
commit 0ee2c3b2bf
1 changed files with 2 additions and 1 deletions

View File

@ -1409,7 +1409,8 @@ static int parse_request(struct connection *conn) {
for (bound2 = bound1 + 1;
(bound2 < conn->request_length) &&
(conn->request[bound2] != ' ') &&
(conn->request[bound2] != '\r');
(conn->request[bound2] != '\r') &&
(conn->request[bound2] != '\n');
bound2++)
;