set MIME-type length,

otherwise ngx_http_test_content_type() did not find "image/gif"
This commit is contained in:
Igor Sysoev 2009-02-17 08:37:36 +00:00
parent 643607bb13
commit 8a3729da14

View File

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