Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 8650:9dce2978e4fd quic
HTTP/3: eliminated r->method_start.
The field was introduced to ease parsing HTTP/3 requests.
The change reduces diff to the default branch.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 25 Nov 2020 17:57:43 +0000 |
parents | 507da0d3b070 |
children | f61d347158d0 |
comparison
equal
deleted
inserted
replaced
8649:5a92523e50d3 | 8650:9dce2978e4fd |
---|---|
1160 r->request_length = r->header_in->pos - r->parse_start; | 1160 r->request_length = r->header_in->pos - r->parse_start; |
1161 | 1161 |
1162 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, | 1162 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, |
1163 "http request line: \"%V\"", &r->request_line); | 1163 "http request line: \"%V\"", &r->request_line); |
1164 | 1164 |
1165 r->method_name.len = r->method_end - r->method_start; | 1165 r->method_name.len = r->method_end - r->request_start + 1; |
1166 r->method_name.data = r->method_start; | 1166 r->method_name.data = r->request_line.data; |
1167 | |
1168 if (r->http_protocol.data) { | |
1169 r->http_protocol.len = r->request_end - r->http_protocol.data; | |
1170 } | |
1167 | 1171 |
1168 if (ngx_http_process_request_uri(r) != NGX_OK) { | 1172 if (ngx_http_process_request_uri(r) != NGX_OK) { |
1169 break; | 1173 break; |
1170 } | 1174 } |
1171 | 1175 |