diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-09-11 06:34:18 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-11 06:34:18 +0000 |
commit | a72822df366b3b1505bf53a66b809380b121ad63 (patch) | |
tree | 74ab2c62781051807312ef10133dcb0fbf4c642c /src | |
parent | 708fe2e526c51fc56bbc59eb40f8b548ba987d5c (diff) | |
download | nginx-a72822df366b3b1505bf53a66b809380b121ad63.tar.gz nginx-a72822df366b3b1505bf53a66b809380b121ad63.zip |
response to the HEAD request should be a header only
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_empty_gif_module.c | 6 |
1 files changed, 1 insertions, 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)); |