changeset 8868:5a2080d48da8 quic

HTTP/3: fixed server push after ea9b645472b5. Unlike in HTTP/2, both "host" and ":authority" reside in r->headers_in.server.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 27 Sep 2021 17:42:53 +0300
parents 40f2f059145a
children e5a17d6041bd
files src/http/v3/ngx_http_v3_filter_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_filter_module.c
+++ b/src/http/v3/ngx_http_v3_filter_module.c
@@ -858,7 +858,7 @@ ngx_http_v3_push_resource(ngx_http_reque
         return NGX_ABORT;
     }
 
-    if (r->headers_in.host == NULL) {
+    if (r->headers_in.server.len == 0) {
         return NGX_ABORT;
     }