mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Merge branch 'master' of https://github.com/sogou/workflow into nossl
This commit is contained in:
@@ -498,12 +498,12 @@ ComplexHttpChunkedTask::ChunkWrapper::next_in(ProtocolMessage *msg)
|
||||
if (status_code / 100 == 1 || status_code == 204 || status_code == 304)
|
||||
return NULL;
|
||||
|
||||
if (resp->is_chunked())
|
||||
if (status_code / 100 == 2)
|
||||
{
|
||||
if (status_code / 100 != 3)
|
||||
task_->extract_(NULL, task_);
|
||||
if (resp->is_chunked())
|
||||
{
|
||||
size = resp->get_size_limit();
|
||||
task_->extract_(NULL, task_);
|
||||
task_->chunk_.set_size_limit(size);
|
||||
task_->chunking_ = true;
|
||||
return &task_->chunk_;
|
||||
|
||||
Reference in New Issue
Block a user