diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-12-09 14:50:19 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-09 14:50:19 +0000 |
commit | d8c43746a509fc0e45e3f6668aadb2237e39979c (patch) | |
tree | ee896b44d5a5d24c46e7605fe70517b0de6e43ba /src | |
parent | 5a55d7104b4f54d63091466f82d203c8e6776752 (diff) | |
download | nginx-d8c43746a509fc0e45e3f6668aadb2237e39979c.tar.gz nginx-d8c43746a509fc0e45e3f6668aadb2237e39979c.zip |
return NGX_HTTP_UPSTREAM_INVALID_HEADER instead of NGX_HTTP_BAD_GATEWAY
to go to a next upstream on invalid_header condition
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 00384a1af..acd5c9023 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -995,7 +995,7 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r) for (i = 0; i < flcf->catch_stderr->nelts; i++) { if (ngx_strstr(line.data, pattern[i].data)) { - return NGX_HTTP_BAD_GATEWAY; + return NGX_HTTP_UPSTREAM_INVALID_HEADER; } } } |