Mercurial > hg > nginx
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 Thu Apr 20 18:26:37 2017 +0300 +++ b/src/http/modules/ngx_http_gzip_static_module.c Thu Apr 20 18:26:38 2017 +0300 @@ -238,7 +238,7 @@ h = ngx_list_push(&r->headers_out.headers); if (h == NULL) { - return NGX_ERROR; + return NGX_HTTP_INTERNAL_SERVER_ERROR; } h->hash = 1;