mirror of
https://github.com/nginx/nginx.git
synced 2025-07-26 15:16:34 +08:00
r1472 merge:
response to the HEAD request should be a header only
This commit is contained in:
parent
1ec29e5d81
commit
74d4ee601e
@ -128,11 +128,7 @@ ngx_http_empty_gif_handler(ngx_http_request_t *r)
|
|||||||
if (r->method == NGX_HTTP_HEAD) {
|
if (r->method == NGX_HTTP_HEAD) {
|
||||||
r->headers_out.status = NGX_HTTP_OK;
|
r->headers_out.status = NGX_HTTP_OK;
|
||||||
|
|
||||||
rc = ngx_http_send_header(r);
|
return ngx_http_send_header(r);
|
||||||
|
|
||||||
if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));
|
b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));
|
||||||
|
Loading…
Reference in New Issue
Block a user