Gzip static: use an appropriate error on memory allocation failure.
This commit is contained in:
parent
a006d29b8a
commit
68443f18f6
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…
Reference in a new issue