mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 12:21:57 +00: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue