Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_scgi_module.c @ 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 | 92deb73393f7 |
comparison
equal
deleted
inserted
replaced
4372:b228587a6494 | 4373:f41b79fa95a3 |
---|---|
980 u->headers_in.status_n = 302; | 980 u->headers_in.status_n = 302; |
981 ngx_str_set(&u->headers_in.status_line, | 981 ngx_str_set(&u->headers_in.status_line, |
982 "302 Moved Temporarily"); | 982 "302 Moved Temporarily"); |
983 | 983 |
984 } else { | 984 } else { |
985 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | |
986 "upstream sent neither valid HTTP/1.0 header " | |
987 "nor \"Status\" header line"); | |
988 u->headers_in.status_n = 200; | 985 u->headers_in.status_n = 200; |
989 ngx_str_set(&u->headers_in.status_line, "200 OK"); | 986 ngx_str_set(&u->headers_in.status_line, "200 OK"); |
990 } | 987 } |
991 | 988 |
992 if (u->state) { | 989 if (u->state) { |