diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-09-23 23:24:13 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-23 23:24:13 +0400 |
commit | 74d4ee601e6ba651b19fd94ca03d59bf75fb6ebc (patch) | |
tree | 65a94a170f0f1e075d734f17b86989b448859041 /src/http/modules | |
parent | 1ec29e5d815d553915d59ffa467eb3ce3ae7c4f5 (diff) |
r1472 merge:
response to the HEAD request should be a header only
Diffstat (limited to 'src/http/modules')
-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 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)); |