]> git.kaiwu.me - nginx.git/commitdiff
r1548 merge:
authorIgor Sysoev <igor@sysoev.ru>
Mon, 29 Oct 2007 15:08:43 +0000 (15:08 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 29 Oct 2007 15:08:43 +0000 (15:08 +0000)
add time and length to a HEAD request

src/http/modules/ngx_http_empty_gif_module.c

index 03ca8021bc287c62495ec02c6941d38f0f8b6d77..5bd23c43c93ea2ab57e4fc8d2b1be8197f147b48 100644 (file)
@@ -127,6 +127,8 @@ ngx_http_empty_gif_handler(ngx_http_request_t *r)
 
     if (r->method == NGX_HTTP_HEAD) {
         r->headers_out.status = NGX_HTTP_OK;
+        r->headers_out.content_length_n = sizeof(ngx_empty_gif);
+        r->headers_out.last_modified_time = 23349600;
 
         return ngx_http_send_header(r);
     }