parse_field() was looking for \r instead of [\r\n]

This commit is contained in:
Emil Mikulic 2011-04-17 17:00:02 +10:00
parent 36f22757f3
commit 7faf2787e4

View File

@ -1370,8 +1370,10 @@ static char *parse_field(const struct connection *conn, const char *field) {
/* find end */
for (bound2 = bound1;
(conn->request[bound2] != '\r') &&
(bound2 < conn->request_length); bound2++)
((conn->request[bound2] != '\r') &&
(conn->request[bound2] != '\n') &&
(bound2 < conn->request_length));
bound2++)
;
/* copy to buffer */