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 c0945faf..7aa5f53f 100644
--- a/src/nxt_http_parse.c
+++ b/src/nxt_http_parse.c
@@ -209,6 +209,8 @@ nxt_http_parse_request_line(nxt_http_request_parse_t *rp, u_char **pos,
nxt_method_test_char(*p); p++;
}
+ rp->method.length = p - rp->method.start;
+
return NXT_AGAIN;
method_unusual_char:
@@ -231,6 +233,8 @@ nxt_http_parse_request_line(nxt_http_request_parse_t *rp, u_char **pos,
continue;
}
+ rp->method.length = p - rp->method.start;
+
return NXT_HTTP_PARSE_INVALID;
}