summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nxt_http_parse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nxt_http_parse.c b/src/nxt_http_parse.c
index 975fdd98..7393e19e 100644
--- a/src/nxt_http_parse.c
+++ b/src/nxt_http_parse.c
@@ -650,9 +650,7 @@ nxt_http_parse_field_value(nxt_http_request_parse_t *rp, u_char **pos,
break;
}
- if (ch == '\0') {
- return NXT_HTTP_PARSE_INVALID;
- }
+ return NXT_HTTP_PARSE_INVALID;
}
if (nxt_fast_path(p != *pos)) {