aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-05-19 15:29:10 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-05-19 15:29:10 +0300
commit6abb50658fcdf6ab92a4bc9042cd7dd9bb413850 (patch)
treeb7f4418b34440c8f0ba8ce83d96f5ad522a9d718 /src/http/ngx_http_request.c
parentd69f678e9c788e2c2424eb6dc2fbacf8366213f6 (diff)
downloadnginx-6abb50658fcdf6ab92a4bc9042cd7dd9bb413850.tar.gz
nginx-6abb50658fcdf6ab92a4bc9042cd7dd9bb413850.zip
HTTP/3: split header parser in two functions.
The first one parses pseudo-headers and is analagous to the request line parser in HTTP/1. The second one parses regular headers and is analogous to the header parser in HTTP/1. Additionally, error handling of client passing malformed uri is now fixed.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index b0cc9a543..e77c4bc35 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1164,7 +1164,7 @@ ngx_http_process_request_line(ngx_event_t *rev)
switch (r->http_version) {
#if (NGX_HTTP_V3)
case NGX_HTTP_VERSION_30:
- rc = ngx_http_v3_parse_header(r, r->header_in);
+ rc = ngx_http_v3_parse_request(r, r->header_in);
break;
#endif