From 8a3729da14b993a79fe934cc6f6ea0cb2b5a6383 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 17 Feb 2009 08:37:36 +0000 Subject: [PATCH] set MIME-type length, otherwise ngx_http_test_content_type() did not find "image/gif" --- src/http/modules/ngx_http_empty_gif_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/modules/ngx_http_empty_gif_module.c b/src/http/modules/ngx_http_empty_gif_module.c index 8450cae71..e6515df15 100644 --- 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_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";