HTTP/3: fixed server push after ea9b645472b5.

Unlike in HTTP/2, both "host" and ":authority" reside in r->headers_in.server.
This commit is contained in:
Sergey Kandaurov 2021-09-27 17:42:53 +03:00
parent a5b5b6ca0f
commit 4d92aa7957

View 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;
}