return NGX_HTTP_UPSTREAM_INVALID_HEADER instead of NGX_HTTP_BAD_GATEWAY

to go to a next upstream on invalid_header condition
This commit is contained in:
Igor Sysoev 2007-12-09 14:50:19 +00:00
parent 5a55d7104b
commit d8c43746a5

View 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;
}
}
}