From: Sergey Kandaurov Date: Thu, 20 Apr 2017 15:26:38 +0000 (+0300) Subject: Gzip static: use an appropriate error on memory allocation failure. X-Git-Tag: release-1.13.0~3 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=beaaeb9f9e642d1d153ee65569d99499eef624e9;p=nginx.git 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 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;