Mercurial > hg > nginx
changeset 4373:f41b79fa95a3
Scgi: removed error if there is no Status header.
The SCGI specification doesn't specify format of the response, and assuming
CGI specs should be used there is no reason to complain. RFC 3875
explicitly states that "A Status header field is optional, and status
200 'OK' is assumed if it is omitted".
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 19 Dec 2011 11:25:40 +0000 |
parents | b228587a6494 |
children | ae376a94de11 |
files | src/http/modules/ngx_http_scgi_module.c |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_scgi_module.c Mon Dec 19 11:24:32 2011 +0000 +++ b/src/http/modules/ngx_http_scgi_module.c Mon Dec 19 11:25:40 2011 +0000 @@ -982,9 +982,6 @@ "302 Moved Temporarily"); } else { - ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, - "upstream sent neither valid HTTP/1.0 header " - "nor \"Status\" header line"); u->headers_in.status_n = 200; ngx_str_set(&u->headers_in.status_line, "200 OK"); }