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
+++ 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";