mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
set MIME-type length,
otherwise ngx_http_test_content_type() did not find "image/gif"
This commit is contained in:
parent
643607bb13
commit
8a3729da14
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user