From 10f8d5d74e862d487bb5d465c4bac91ee94816c4 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 29 Jul 2010 15:40:03 +0000 Subject: [PATCH] return 415 on too big image in image filter --- src/http/modules/ngx_http_image_filter_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {