From 4d92aa79571d095e088c22513262a68aa347950d Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Mon, 27 Sep 2021 17:42:53 +0300 Subject: HTTP/3: fixed server push after ea9b645472b5. Unlike in HTTP/2, both "host" and ":authority" reside in r->headers_in.server. --- src/http/v3/ngx_http_v3_filter_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/http/v3/ngx_http_v3_filter_module.c b/src/http/v3/ngx_http_v3_filter_module.c index a88b32f07..ee3c99dc1 100644 --- 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_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; } -- cgit