]> git.kaiwu.me - nginx.git/commitdiff
return NGX_HTTP_UPSTREAM_INVALID_HEADER instead of NGX_HTTP_BAD_GATEWAY
authorIgor Sysoev <igor@sysoev.ru>
Sun, 9 Dec 2007 14:50:19 +0000 (14:50 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 9 Dec 2007 14:50:19 +0000 (14:50 +0000)
to go to a next upstream on invalid_header condition

src/http/modules/ngx_http_fastcgi_module.c

index 00384a1af402c24f3ffbb1ef23dea4c3f4a3597e..acd5c9023ca6cd50fbfc063a617fbc94b4d151dc 100644 (file)
@@ -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;
                         }
                     }
                 }