From c306402a20a2bc50ba4700af40e8baaed52922d5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 9 Jan 2013 22:55:29 +0900 Subject: [PATCH] shrpx: Capitalize header field name in HTTP downstream connection --- src/shrpx_http_downstream_connection.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shrpx_http_downstream_connection.cc b/src/shrpx_http_downstream_connection.cc index 104c6272..09cbce3b 100644 --- a/src/shrpx_http_downstream_connection.cc +++ b/src/shrpx_http_downstream_connection.cc @@ -142,6 +142,7 @@ int HttpDownstreamConnection::push_request_headers() continue; } hdrs += (*i).first; + http::capitalize(hdrs, hdrs.size()-(*i).first.size()); hdrs += ": "; hdrs += (*i).second; hdrs += "\r\n";