Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 8494:e334ca1b23ba quic
HTTP/3: support $server_protocol variable.
Now it holds "HTTP/3.0". Previously it was empty.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 14 Jul 2020 16:52:44 +0300 |
parents | d6feece1288a |
children | 9ffef6054abf |
comparison
equal
deleted
inserted
replaced
8493:e533a352d118 | 8494:e334ca1b23ba |
---|---|
831 | 831 |
832 if (r->request_end == NULL) { | 832 if (r->request_end == NULL) { |
833 r->request_end = p; | 833 r->request_end = p; |
834 } | 834 } |
835 | 835 |
836 if (r->http_protocol.data) { | |
837 r->http_protocol.len = r->request_end - r->http_protocol.data; | |
838 } | |
839 | |
836 r->http_version = r->http_major * 1000 + r->http_minor; | 840 r->http_version = r->http_major * 1000 + r->http_minor; |
837 r->state = sw_start; | 841 r->state = sw_start; |
838 | 842 |
839 if (r->http_version == 9 && r->method != NGX_HTTP_GET) { | 843 if (r->http_version == 9 && r->method != NGX_HTTP_GET) { |
840 return NGX_HTTP_PARSE_INVALID_09_METHOD; | 844 return NGX_HTTP_PARSE_INVALID_09_METHOD; |