mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Accept \n as line ending when parsing URL.
This fixes "HTTP 0.9" requests.
This commit is contained in:
parent
97b7be4f79
commit
0ee2c3b2bf
@ -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++)
|
||||
;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user