Gzip static: use an appropriate error on memory allocation failure.

This commit is contained in:
Sergey Kandaurov 2017-04-20 18:26:38 +03:00
parent a006d29b8a
commit 68443f18f6

View file

@ -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;