# HG changeset patch # User Igor Sysoev # Date 1234859856 0 # Node ID aa5e003d30bf0b9c087dbeae5195ea68056e6982 # Parent d2e9a60392c80692e68cb0cc4341e067c55f9ab9 set MIME-type length, otherwise ngx_http_test_content_type() did not find "image/gif" diff --git a/src/http/modules/ngx_http_empty_gif_module.c b/src/http/modules/ngx_http_empty_gif_module.c --- 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";