mirror of
https://github.com/nginx/nginx.git
synced 2025-07-21 03:44:05 +08:00
Merge 7344f54d1d
into c52c5698cd
This commit is contained in:
commit
a31458fc1c
@ -1034,11 +1034,11 @@ ngx_http_v3_process_request_header(ngx_http_request_t *r)
|
|||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r->headers_in.host) {
|
if (r->headers_in.host && r->host_end) {
|
||||||
if (r->headers_in.host->value.len != r->headers_in.server.len
|
if (r->headers_in.host->value.len !=
|
||||||
|
(size_t) (r->host_end - r->host_start)
|
||||||
|| ngx_memcmp(r->headers_in.host->value.data,
|
|| ngx_memcmp(r->headers_in.host->value.data,
|
||||||
r->headers_in.server.data,
|
r->host_start, r->host_end - r->host_start)
|
||||||
r->headers_in.server.len)
|
|
||||||
!= 0)
|
!= 0)
|
||||||
{
|
{
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user