shrpx: Use request HTTP version in HTTPS upstream response

This commit is contained in:
Tatsuhiro Tsujikawa 2012-09-20 22:36:17 +09:00
parent 5597ee68da
commit abf2ddc3a6
1 changed files with 2 additions and 2 deletions

View File

@ -540,8 +540,8 @@ int HttpsUpstream::on_downstream_header_complete(Downstream *downstream)
std::string via_value; std::string via_value;
char temp[16]; char temp[16];
snprintf(temp, sizeof(temp), "HTTP/%d.%d ", snprintf(temp, sizeof(temp), "HTTP/%d.%d ",
downstream->get_response_major(), downstream->get_request_major(),
downstream->get_response_minor()); downstream->get_request_minor());
std::string hdrs = temp; std::string hdrs = temp;
hdrs += http::get_status_string(downstream->get_response_http_status()); hdrs += http::get_status_string(downstream->get_response_http_status());
hdrs += "\r\n"; hdrs += "\r\n";