mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06: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;
|
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.len = sizeof("image/gif") - 1;
|
||||||
r->headers_out.content_type.data = (u_char *) "image/gif";
|
r->headers_out.content_type.data = (u_char *) "image/gif";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user