mirror of
https://github.com/nginx/nginx.git
synced 2024-11-26 02:40:46 -06:00
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".
This commit is contained in:
parent
32e2038026
commit
8a85ab8e20
@ -982,9 +982,6 @@ ngx_http_scgi_process_header(ngx_http_request_t *r)
|
||||
"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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user