shrpx: Capitalize header field name in HTTP downstream connection

This commit is contained in:
Tatsuhiro Tsujikawa 2013-01-09 22:55:29 +09:00
parent c45fa16f94
commit c306402a20
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ int HttpDownstreamConnection::push_request_headers()
continue; continue;
} }
hdrs += (*i).first; hdrs += (*i).first;
http::capitalize(hdrs, hdrs.size()-(*i).first.size());
hdrs += ": "; hdrs += ": ";
hdrs += (*i).second; hdrs += (*i).second;
hdrs += "\r\n"; hdrs += "\r\n";