mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
parse_field() was looking for \r instead of [\r\n]
This commit is contained in:
parent
36f22757f3
commit
7faf2787e4
@ -1370,8 +1370,10 @@ static char *parse_field(const struct connection *conn, const char *field) {
|
|||||||
|
|
||||||
/* find end */
|
/* find end */
|
||||||
for (bound2 = bound1;
|
for (bound2 = bound1;
|
||||||
(conn->request[bound2] != '\r') &&
|
((conn->request[bound2] != '\r') &&
|
||||||
(bound2 < conn->request_length); bound2++)
|
(conn->request[bound2] != '\n') &&
|
||||||
|
(bound2 < conn->request_length));
|
||||||
|
bound2++)
|
||||||
;
|
;
|
||||||
|
|
||||||
/* copy to buffer */
|
/* copy to buffer */
|
||||||
|
Loading…
Reference in New Issue
Block a user