From: Igor Sysoev Date: Sun, 23 Sep 2007 19:24:13 +0000 (+0000) Subject: r1472 merge: X-Git-Tag: release-0.5.32~6 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=74d4ee601e6ba651b19fd94ca03d59bf75fb6ebc;p=nginx.git r1472 merge: response to the HEAD request should be a header only --- diff --git a/src/http/modules/ngx_http_empty_gif_module.c b/src/http/modules/ngx_http_empty_gif_module.c index 050e75912..03ca8021b 100644 --- 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_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));