aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-02-17 08:37:36 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-02-17 08:37:36 +0000
commit8a3729da14b993a79fe934cc6f6ea0cb2b5a6383 (patch)
tree94c431e449ded616d122471fb15d57ca1a3bb1de /src
parent643607bb13fbeb6f2dc179b1a9e218a2762d0118 (diff)
downloadnginx-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.c1
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";