nghttpx: Fix broken healthmon frontend

This commit is contained in:
Tatsuhiro Tsujikawa 2018-08-27 21:21:55 +09:00
parent d24527e7e6
commit 31fd707d0c
1 changed files with 8 additions and 1 deletions

View File

@ -54,7 +54,14 @@ void HealthMonitorDownstreamConnection::detach_downstream(
downstream_ = nullptr; downstream_ = nullptr;
} }
int HealthMonitorDownstreamConnection::push_request_headers() { return 0; } int HealthMonitorDownstreamConnection::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;
}
int HealthMonitorDownstreamConnection::push_upload_data_chunk( int HealthMonitorDownstreamConnection::push_upload_data_chunk(
const uint8_t *data, size_t datalen) { const uint8_t *data, size_t datalen) {