mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
Gzip static: use an appropriate error on memory allocation failure.
This commit is contained in:
parent
9ecf842864
commit
beaaeb9f9e
@ -238,7 +238,7 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r)
|
|||||||
|
|
||||||
h = ngx_list_push(&r->headers_out.headers);
|
h = ngx_list_push(&r->headers_out.headers);
|
||||||
if (h == NULL) {
|
if (h == NULL) {
|
||||||
return NGX_ERROR;
|
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
h->hash = 1;
|
h->hash = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user