nghttpx: Move blocked request data to request buffer for API request

This commit is contained in:
Tatsuhiro Tsujikawa 2018-08-24 23:07:43 +09:00
parent 32826466f5
commit 0ccc7a770d
1 changed files with 5 additions and 0 deletions

View File

@ -265,6 +265,11 @@ int APIDownstreamConnection::push_request_headers() {
}
}
downstream_->set_request_header_sent(true);
auto src = downstream_->get_blocked_request_buf();
auto dest = downstream_->get_request_buf();
src->remove(*dest);
return 0;
}