mirror of
https://github.com/sogou/workflow.git
synced 2026-10-17 04:31:07 +08:00
Merge branch 'master' of https://github.com/sogou/workflow into nossl
This commit is contained in:
@@ -193,8 +193,7 @@ public:
|
||||
std::function<void (WFDnsTask *)>& proc) :
|
||||
WFServerTask(service, WFGlobal::get_scheduler(), proc)
|
||||
{
|
||||
auto *server = (WFServer<DnsRequest, DnsResponse> *)service;
|
||||
this->type = server->get_params()->transport_type;
|
||||
this->type = ((WFServerBase *)service)->get_params()->transport_type;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
@@ -324,9 +324,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