From abf2ddc3a67aaffba4912e1594f99df533e21d68 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 20 Sep 2012 22:36:17 +0900 Subject: [PATCH] shrpx: Use request HTTP version in HTTPS upstream response --- src/shrpx_https_upstream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shrpx_https_upstream.cc b/src/shrpx_https_upstream.cc index 9a0d979..0b75cec 100644 --- a/src/shrpx_https_upstream.cc +++ b/src/shrpx_https_upstream.cc @@ -540,8 +540,8 @@ int HttpsUpstream::on_downstream_header_complete(Downstream *downstream) std::string via_value; char temp[16]; snprintf(temp, sizeof(temp), "HTTP/%d.%d ", - downstream->get_response_major(), - downstream->get_response_minor()); + downstream->get_request_major(), + downstream->get_request_minor()); std::string hdrs = temp; hdrs += http::get_status_string(downstream->get_response_http_status()); hdrs += "\r\n";