diff src/http/v3/ngx_http_v3_request.c @ 8012: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
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_request.c
+++ b/src/http/v3/ngx_http_v3_request.c
@@ -110,6 +110,8 @@ ngx_http_v3_parse_request(ngx_http_reque
             continue;
         }
 
+        ngx_str_set(&r->http_protocol, "HTTP/3.0");
+
         len = (r->method_end - r->method_start) + 1
             + (r->uri_end - r->uri_start) + 1
             + sizeof("HTTP/3") - 1;