mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
return NGX_HTTP_UPSTREAM_INVALID_HEADER for invalid status
This commit is contained in:
parent
8cdfc515c3
commit
a114911332
@ -1174,7 +1174,10 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r)
|
|||||||
status = ngx_atoi(status_line->data, 3);
|
status = ngx_atoi(status_line->data, 3);
|
||||||
|
|
||||||
if (status == NGX_ERROR) {
|
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;
|
u->headers_in.status_n = status;
|
||||||
|
Loading…
Reference in New Issue
Block a user