Mercurial > hg > nginx
diff src/http/modules/ngx_http_empty_gif_module.c @ 2508:aa5e003d30bf
set MIME-type length,
otherwise ngx_http_test_content_type() did not find "image/gif"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Feb 2009 08:37:36 +0000 |
parents | e114a16fc5be |
children | dd1570b6f237 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_empty_gif_module.c +++ b/src/http/modules/ngx_http_empty_gif_module.c @@ -122,6 +122,7 @@ ngx_http_empty_gif_handler(ngx_http_requ 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";