diff src/http/ngx_http_header_filter_module.c @ 7681:38c0898b6df7 quic

HTTP/3.
author Roman Arutyunyan <arut@nginx.com>
date Fri, 13 Mar 2020 19:36:33 +0300
parents 8801ff7d58e1
children a3257a725b3d
line wrap: on
line diff
--- a/src/http/ngx_http_header_filter_module.c
+++ b/src/http/ngx_http_header_filter_module.c
@@ -179,6 +179,21 @@ ngx_http_header_filter(ngx_http_request_
         return NGX_OK;
     }
 
+#if (NGX_HTTP_V3)
+
+    if (r->http_version == NGX_HTTP_VERSION_30) {
+        ngx_chain_t  *cl;
+
+        cl = ngx_http_v3_create_header(r);
+        if (cl == NULL) {
+            return NGX_ERROR;
+        }
+
+        return ngx_http_write_filter(r, cl);
+    }
+
+#endif
+
     if (r->http_version < NGX_HTTP_VERSION_10) {
         return NGX_OK;
     }