mirror of
https://github.com/nginx/nginx.git
synced 2026-10-22 03:51:14 +00:00
response to the HEAD request should be a header only
This commit is contained in:
parent
708fe2e526
commit
a72822df36
1 changed files with 1 additions and 5 deletions
|
|
@ -128,11 +128,7 @@ ngx_http_empty_gif_handler(ngx_http_request_t *r)
|
|||
if (r->method == NGX_HTTP_HEAD) {
|
||||
r->headers_out.status = NGX_HTTP_OK;
|
||||
|
||||
rc = ngx_http_send_header(r);
|
||||
|
||||
if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
|
||||
return rc;
|
||||
}
|
||||
return ngx_http_send_header(r);
|
||||
}
|
||||
|
||||
b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue