]> git.kaiwu.me - nginx.git/commitdiff
r1472 merge:
authorIgor Sysoev <igor@sysoev.ru>
Sun, 23 Sep 2007 19:24:13 +0000 (19:24 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 23 Sep 2007 19:24:13 +0000 (19:24 +0000)
response to the HEAD request should be a header only

src/http/modules/ngx_http_empty_gif_module.c

index 050e75912e5a7c1cd2c626e2e2f6d51aa0ad58d8..03ca8021bc287c62495ec02c6941d38f0f8b6d77 100644 (file)
@@ -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));