mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 20:01:45 +00:00
Gzip static: use an appropriate error on memory allocation failure.
This commit is contained in:
parent
9ecf842864
commit
beaaeb9f9e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue