diff src/http/modules/ngx_http_gzip_static_module.c @ 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 99934aade555
children d26db4f82d7d
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;