Mercurial > hg > nginx
changeset 1471:fc73de3e8df0
response to the HEAD request should be a header only
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 11 Sep 2007 06:34:18 +0000 |
parents | 92b5f20d54f4 |
children | 32450a2bbdf4 |
files | src/http/modules/ngx_http_empty_gif_module.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_empty_gif_module.c +++ b/src/http/modules/ngx_http_empty_gif_module.c @@ -128,11 +128,7 @@ ngx_http_empty_gif_handler(ngx_http_requ 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));