mirror of
https://github.com/nginx/nginx.git
synced 2026-08-10 04:58:14 -05:00
return 415 on too big image in image filter
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user