Skip to content
Permalink
Browse files

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

  • Loading branch information...
tatsuhiro-t committed Oct 21, 2017
1 parent 17c88d6 commit a319143901fdc92ae3fad963100658256e109f08
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/shrpx_https_upstream.cc
@@ -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;
}

0 comments on commit a319143

Please sign in to comment.
You can’t perform that action at this time.