]> git.kaiwu.me - nginx.git/commitdiff
HTTP/3: fixed server push after ea9b645472b5.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 27 Sep 2021 14:42:53 +0000 (17:42 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 27 Sep 2021 14:42:53 +0000 (17:42 +0300)
Unlike in HTTP/2, both "host" and ":authority" reside in r->headers_in.server.

src/http/v3/ngx_http_v3_filter_module.c

index a88b32f0768b760f49b5287675acea99cfc44f2b..ee3c99dc1f86320d3c8e56a2133016a1a3f53e65 100644 (file)
@@ -858,7 +858,7 @@ ngx_http_v3_push_resource(ngx_http_request_t *r, ngx_str_t *path,
         return NGX_ABORT;
     }
 
-    if (r->headers_in.host == NULL) {
+    if (r->headers_in.server.len == 0) {
         return NGX_ABORT;
     }