mirror of
https://github.com/nginx/nginx.git
synced 2025-07-31 02:26:15 +08:00
r1275 merge:
omit unnecessary conditions
This commit is contained in:
parent
de07985208
commit
8266ad4bf2
@ -1144,17 +1144,17 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r)
|
|||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc == NGX_OK && u->buffer.pos == u->buffer.last) {
|
if (rc == NGX_OK) {
|
||||||
return NGX_AGAIN;
|
return NGX_AGAIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc == NGX_AGAIN) {
|
/* rc == NGX_AGAIN */
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
|
ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
|
||||||
"upstream split a header line in FastCGI records");
|
"upstream split a header line in FastCGI records");
|
||||||
|
|
||||||
return NGX_HTTP_UPSTREAM_INVALID_HEADER;
|
return NGX_HTTP_UPSTREAM_INVALID_HEADER;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user