Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_request.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 | e24f7b50ba1d |
children | 0596fe1aee16 |
comparison
equal
deleted
inserted
replaced
8493:e533a352d118 | 8494:e334ca1b23ba |
---|---|
108 | 108 |
109 if (n == NGX_OK && rc == NGX_OK) { | 109 if (n == NGX_OK && rc == NGX_OK) { |
110 continue; | 110 continue; |
111 } | 111 } |
112 | 112 |
113 ngx_str_set(&r->http_protocol, "HTTP/3.0"); | |
114 | |
113 len = (r->method_end - r->method_start) + 1 | 115 len = (r->method_end - r->method_start) + 1 |
114 + (r->uri_end - r->uri_start) + 1 | 116 + (r->uri_end - r->uri_start) + 1 |
115 + sizeof("HTTP/3") - 1; | 117 + sizeof("HTTP/3") - 1; |
116 | 118 |
117 p = ngx_pnalloc(c->pool, len); | 119 p = ngx_pnalloc(c->pool, len); |