mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Make it works with some ridiculous http servers.
This commit is contained in:
@@ -343,9 +343,7 @@ void ComplexHttpTask::check_response()
|
||||
if (this->state == WFT_STATE_SYS_ERROR && this->error == ECONNRESET)
|
||||
{
|
||||
/* Servers can end the message by closing the connection. */
|
||||
if (resp->is_header_complete() &&
|
||||
!resp->is_keep_alive() &&
|
||||
!resp->is_chunked() &&
|
||||
if (resp->is_header_complete() && !resp->is_chunked() &&
|
||||
!resp->has_content_length_header())
|
||||
{
|
||||
this->state = WFT_STATE_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user