Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 8405:d2759e4cc437 quic
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 19 May 2020 15:29:10 +0300 |
parents | 44cac24aaa44 |
children | 66feab03d9b7 |
comparison
equal
deleted
inserted
replaced
8404:e5d4f057a6cb | 8405:d2759e4cc437 |
---|---|
1162 } | 1162 } |
1163 | 1163 |
1164 switch (r->http_version) { | 1164 switch (r->http_version) { |
1165 #if (NGX_HTTP_V3) | 1165 #if (NGX_HTTP_V3) |
1166 case NGX_HTTP_VERSION_30: | 1166 case NGX_HTTP_VERSION_30: |
1167 rc = ngx_http_v3_parse_header(r, r->header_in); | 1167 rc = ngx_http_v3_parse_request(r, r->header_in); |
1168 break; | 1168 break; |
1169 #endif | 1169 #endif |
1170 | 1170 |
1171 default: /* HTTP/1.x */ | 1171 default: /* HTTP/1.x */ |
1172 rc = ngx_http_parse_request_line(r, r->header_in); | 1172 rc = ngx_http_parse_request_line(r, r->header_in); |