aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2017-04-20 18:26:38 +0300
committerSergey Kandaurov <pluknet@nginx.com>2017-04-20 18:26:38 +0300
commitbeaaeb9f9e642d1d153ee65569d99499eef624e9 (patch)
tree1075cb65e026fe60be621c26aaf9de4e31f46ff3 /src
parent9ecf8428645579cf66adc5ba939bf1267924c5bc (diff)
downloadnginx-beaaeb9f9e642d1d153ee65569d99499eef624e9.tar.gz
nginx-beaaeb9f9e642d1d153ee65569d99499eef624e9.zip
Gzip static: use an appropriate error on memory allocation failure.
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_gzip_static_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c
index 1d87cd4ef..7652a9af3 100644
--- a/src/http/modules/ngx_http_gzip_static_module.c
+++ b/src/http/modules/ngx_http_gzip_static_module.c
@@ -238,7 +238,7 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r)
h = ngx_list_push(&r->headers_out.headers);
if (h == NULL) {
- return NGX_ERROR;
+ return NGX_HTTP_INTERNAL_SERVER_ERROR;
}
h->hash = 1;