]> git.kaiwu.me - nginx.git/commitdiff
set MIME-type length,
authorIgor Sysoev <igor@sysoev.ru>
Tue, 17 Feb 2009 08:37:36 +0000 (08:37 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 17 Feb 2009 08:37:36 +0000 (08:37 +0000)
otherwise ngx_http_test_content_type() did not find "image/gif"

src/http/modules/ngx_http_empty_gif_module.c

index 8450cae71e3e50cef5651f1d443d96bd9ff1e270..e6515df155dba6df12bb674ad9695ea731b2be9f 100644 (file)
@@ -122,6 +122,7 @@ ngx_http_empty_gif_handler(ngx_http_request_t *r)
         return rc;
     }
 
+    r->headers_out.content_type_len = sizeof("image/gif") - 1;
     r->headers_out.content_type.len = sizeof("image/gif") - 1;
     r->headers_out.content_type.data = (u_char *) "image/gif";