diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-02-17 08:37:36 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-02-17 08:37:36 +0000 |
commit | 8a3729da14b993a79fe934cc6f6ea0cb2b5a6383 (patch) | |
tree | 94c431e449ded616d122471fb15d57ca1a3bb1de /src | |
parent | 643607bb13fbeb6f2dc179b1a9e218a2762d0118 (diff) | |
download | nginx-8a3729da14b993a79fe934cc6f6ea0cb2b5a6383.tar.gz nginx-8a3729da14b993a79fe934cc6f6ea0cb2b5a6383.zip |
set MIME-type length,
otherwise ngx_http_test_content_type() did not find "image/gif"
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_empty_gif_module.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"; |