details: http://hg.nginx.org/nginx/rev/5116cfea1e9a
branches:
changeset: 6987:5116cfea1e9a
user: Sergey Kandaurov <pluknet@nginx.com>
date: Thu Apr 20 18:26:38 2017 +0300
description:
Gzip static: use an appropriate error on memory allocation failure.
diffstat:
src/http/modules/ngx_http_gzip_static_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 0cdee26605f3 -r 5116cfea1e9a src/http/modules/ngx_http_gzip_static_module.c
--- a/src/http/modules/ngx_http_gzip_static_module.c Thu Apr 20 18:26:37 2017 +0300
+++ b/src/http/modules/ngx_http_gzip_static_module.c Thu Apr 20 18:26:38 2017 +0300
@@ -238,7 +238,7 @@ ngx_http_gzip_static_handler(ngx_http_re
h = ngx_list_push(&r->headers_out.headers);
if (h == NULL) {
- return NGX_ERROR;
+ return NGX_HTTP_INTERNAL_SERVER_ERROR;
}
h->hash = 1;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel