diff --git a/src/shrpx_http2_downstream_connection.cc b/src/shrpx_http2_downstream_connection.cc index 2cada3d3..e47d99df 100644 --- a/src/shrpx_http2_downstream_connection.cc +++ b/src/shrpx_http2_downstream_connection.cc @@ -382,7 +382,7 @@ int Http2DownstreamConnection::push_request_headers() nva.push_back(http2::make_nv_ll("x-forwarded-proto", "http")); } } else { - nva.push_back(http2::make_nv_ls("x-forwarded-proto", scheme.c_str())); + nva.push_back(http2::make_nv_ls("x-forwarded-proto", scheme)); } }