nghttpx: Fix bug that header fields are missing in HTTP/1.0 response

This commit is contained in:
Tatsuhiro Tsujikawa 2017-10-22 01:11:32 +09:00
parent 17c88d60c7
commit a319143901
1 changed files with 2 additions and 1 deletions

View File

@ -1022,7 +1022,8 @@ int HttpsUpstream::on_downstream_header_complete(Downstream *downstream) {
auto &resp = downstream->response();
auto &balloc = downstream->get_block_allocator();
if (!downstream->supports_non_final_response()) {
if (downstream->get_non_final_response() &&
!downstream->supports_non_final_response()) {
resp.fs.clear_headers();
return 0;
}