From a72822df366b3b1505bf53a66b809380b121ad63 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 11 Sep 2007 06:34:18 +0000 Subject: [PATCH] response to the HEAD request should be a header only --- src/http/modules/ngx_http_empty_gif_module.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/http/modules/ngx_http_empty_gif_module.c b/src/http/modules/ngx_http_empty_gif_module.c index 66ada088a..dbfe710aa 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));