diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-12-09 08:08:56 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-09 08:08:56 +0000 |
commit | a11491133256e57f2387404a8f9dcb67461e4bde (patch) | |
tree | c564024c7acf1f5cc67d0b426451f9cb99e11af3 /src | |
parent | 8cdfc515c31188e23cd270cadc0787433b2b8f30 (diff) | |
download | nginx-a11491133256e57f2387404a8f9dcb67461e4bde.tar.gz nginx-a11491133256e57f2387404a8f9dcb67461e4bde.zip |
return NGX_HTTP_UPSTREAM_INVALID_HEADER for invalid status
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 5a15fc1e2..7b799c516 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -1174,7 +1174,10 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r) 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; |