mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 23:49:00 +08:00
return 415 on too big image in image filter
This commit is contained in:
parent
7c50789e2a
commit
10f8d5d74e
@ -228,7 +228,7 @@ ngx_http_image_header_filter(ngx_http_request_t *r)
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
|
||||
"image filter: too big response: %O", len);
|
||||
|
||||
return NGX_ERROR;
|
||||
return NGX_HTTP_UNSUPPORTED_MEDIA_TYPE;
|
||||
}
|
||||
|
||||
if (len == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user