aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-07-29 15:40:03 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-07-29 15:40:03 +0000
commit10f8d5d74e862d487bb5d465c4bac91ee94816c4 (patch)
treeb2eb3dba632b7fe0b91f605b88d1cf1c1712e7ca /src
parent7c50789e2adf4b6d0df15be1a76911f327fad535 (diff)
downloadnginx-10f8d5d74e862d487bb5d465c4bac91ee94816c4.tar.gz
nginx-10f8d5d74e862d487bb5d465c4bac91ee94816c4.zip
return 415 on too big image in image filter
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_image_filter_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_image_filter_module.c b/src/http/modules/ngx_http_image_filter_module.c
index b5f8425a8..4434a1ef9 100644
--- a/src/http/modules/ngx_http_image_filter_module.c
+++ b/src/http/modules/ngx_http_image_filter_module.c
@@ -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) {