Mercurial > hg > nginx
changeset 1698:70202cd85645
return NGX_HTTP_UPSTREAM_INVALID_HEADER for invalid status
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 09 Dec 2007 08:08:56 +0000 |
parents | d6afb8723155 |
children | 976db8c6fb64 |
files | src/http/modules/ngx_http_fastcgi_module.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c Sat Dec 08 22:12:37 2007 +0000 +++ b/src/http/modules/ngx_http_fastcgi_module.c Sun Dec 09 08:08:56 2007 +0000 @@ -1174,7 +1174,10 @@ status = ngx_atoi(status_line->data, 3); if (status == NGX_ERROR) { - return NGX_HTTP_INTERNAL_SERVER_ERROR; + ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, + "upstream sent invalid status \"%V\"", + status_line); + return NGX_HTTP_UPSTREAM_INVALID_HEADER; } u->headers_in.status_n = status;