summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_http_parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_http_parse.c b/src/nxt_http_parse.c
index cf0a0c7d..dd86c44f 100644
--- a/src/nxt_http_parse.c
+++ b/src/nxt_http_parse.c
@@ -303,9 +303,11 @@ nxt_http_parse_request_line(nxt_http_request_parse_t *rp, u_char **pos,
goto rest_of_target;
case NXT_HTTP_TARGET_AGAIN:
+ rp->target_end = p;
return NXT_AGAIN;
case NXT_HTTP_TARGET_BAD:
+ rp->target_end = p;
return NXT_HTTP_PARSE_INVALID;
}
@@ -329,9 +331,11 @@ rest_of_target:
continue;
case NXT_HTTP_TARGET_AGAIN:
+ rp->target_end = p;
return NXT_AGAIN;
case NXT_HTTP_TARGET_BAD:
+ rp->target_end = p;
return NXT_HTTP_PARSE_INVALID;
default: