Commit 2b75aff3 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Fix bug that zero-length POST is not forwarded

parent f4474d57
...@@ -561,6 +561,8 @@ int HttpDownstreamConnection::push_upload_data_chunk(const uint8_t *data, ...@@ -561,6 +561,8 @@ int HttpDownstreamConnection::push_upload_data_chunk(const uint8_t *data,
} }
int HttpDownstreamConnection::end_upload_data() { int HttpDownstreamConnection::end_upload_data() {
signal_write();
if (!downstream_->get_chunked_request()) { if (!downstream_->get_chunked_request()) {
return 0; return 0;
} }
...@@ -577,8 +579,6 @@ int HttpDownstreamConnection::end_upload_data() { ...@@ -577,8 +579,6 @@ int HttpDownstreamConnection::end_upload_data() {
output->append("\r\n"); output->append("\r\n");
} }
signal_write();
return 0; return 0;
} }
......
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