mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix zero length static response, the bug was introduced in r2378
This commit is contained in:
parent
371766c0a5
commit
ac662fbe1b
@ -217,7 +217,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
|
|||||||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (of.size == 0) {
|
if (r != r->main && of.size == 0) {
|
||||||
return ngx_http_send_header(r);
|
return ngx_http_send_header(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user