changeset 6987:5116cfea1e9a

Gzip static: use an appropriate error on memory allocation failure.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 20 Apr 2017 18:26:38 +0300
parents 0cdee26605f3
children cc823122d50d
files src/http/modules/ngx_http_gzip_static_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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_re
 
     h = ngx_list_push(&r->headers_out.headers);
     if (h == NULL) {
-        return NGX_ERROR;
+        return NGX_HTTP_INTERNAL_SERVER_ERROR;
     }
 
     h->hash = 1;