Fix return value while parse header

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
main
Jianhui Zhao 2020-03-14 14:10:45 +08:00
parent 040763a64a
commit f51903664e
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ static int on_header_field_cb(struct http_parser *parser, const char *at, size_t
if (n == UHTTPD_MAX_HEADER_NUM) { if (n == UHTTPD_MAX_HEADER_NUM) {
uh_log_err("Header too more\n"); uh_log_err("Header too more\n");
return 0; return 1;
} }
req->headers_info[n].name_offset = ROF(conn, at); req->headers_info[n].name_offset = ROF(conn, at);