Commit ab56cd4e authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Fix bug: end marker of chunked encoding is written twice

parent 8ca501ae
...@@ -702,6 +702,9 @@ int HttpsUpstream::on_downstream_body(Downstream *downstream, ...@@ -702,6 +702,9 @@ int HttpsUpstream::on_downstream_body(Downstream *downstream,
const uint8_t *data, size_t len) const uint8_t *data, size_t len)
{ {
int rv; int rv;
if(len == 0) {
return 0;
}
evbuffer *output = bufferevent_get_output(handler_->get_bev()); evbuffer *output = bufferevent_get_output(handler_->get_bev());
if(downstream->get_chunked_response()) { if(downstream->get_chunked_response()) {
char chunk_size_hex[16]; char chunk_size_hex[16];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment