Mercurial > hg > nginx
changeset 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 | d2e9a60392c8 |
children | b4661481f198 |
files | src/http/modules/ngx_http_empty_gif_module.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_empty_gif_module.c Mon Feb 16 14:55:10 2009 +0000 +++ b/src/http/modules/ngx_http_empty_gif_module.c Tue Feb 17 08:37:36 2009 +0000 @@ -122,6 +122,7 @@ 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";