# HG changeset patch # User Sergey Kandaurov # Date 1492701998 -10800 # Node ID 5116cfea1e9a84be678af10e0ff1f1fce9b00cfb # Parent 0cdee26605f3c862b5a6a386b9fbefb610601f21 Gzip static: use an appropriate error on memory allocation failure. diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c --- 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;