mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 03:21:08 +00:00
omit unnecessary conditions
This commit is contained in:
parent
4d2e0f0198
commit
7797887b1d
1 changed files with 6 additions and 6 deletions
|
|
@ -1144,16 +1144,16 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r)
|
|||
return NGX_OK;
|
||||
}
|
||||
|
||||
if (rc == NGX_OK && u->buffer.pos == u->buffer.last) {
|
||||
if (rc == NGX_OK) {
|
||||
return NGX_AGAIN;
|
||||
}
|
||||
|
||||
if (rc == NGX_AGAIN) {
|
||||
ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
|
||||
"upstream split a header line in FastCGI records");
|
||||
/* rc == NGX_AGAIN */
|
||||
|
||||
return NGX_HTTP_UPSTREAM_INVALID_HEADER;
|
||||
}
|
||||
ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
|
||||
"upstream split a header line in FastCGI records");
|
||||
|
||||
return NGX_HTTP_UPSTREAM_INVALID_HEADER;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue