Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 1700:7f3350b18e75
return NGX_HTTP_UPSTREAM_INVALID_HEADER instead of NGX_HTTP_BAD_GATEWAY
to go to a next upstream on invalid_header condition
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 09 Dec 2007 14:50:19 +0000 |
parents | 976db8c6fb64 |
children | 40d004d95d88 |
comparison
equal
deleted
inserted
replaced
1699:976db8c6fb64 | 1700:7f3350b18e75 |
---|---|
993 | 993 |
994 line.data[line.len - 1] = '\0'; | 994 line.data[line.len - 1] = '\0'; |
995 | 995 |
996 for (i = 0; i < flcf->catch_stderr->nelts; i++) { | 996 for (i = 0; i < flcf->catch_stderr->nelts; i++) { |
997 if (ngx_strstr(line.data, pattern[i].data)) { | 997 if (ngx_strstr(line.data, pattern[i].data)) { |
998 return NGX_HTTP_BAD_GATEWAY; | 998 return NGX_HTTP_UPSTREAM_INVALID_HEADER; |
999 } | 999 } |
1000 } | 1000 } |
1001 } | 1001 } |
1002 | 1002 |
1003 if (u->buffer.pos == u->buffer.last) { | 1003 if (u->buffer.pos == u->buffer.last) { |