Commit 76b3ba28 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttp: Sort request header fields using http2::name_less

parent 05f982dc
......@@ -1043,11 +1043,7 @@ int submit_request
build_headers.emplace_back(kv.first, kv.second, no_index);
}
std::stable_sort(std::begin(build_headers), std::end(build_headers),
[](const Headers::value_type& lhs,
const Headers::value_type& rhs)
{
return lhs.name < rhs.name;
});
http2::name_less);
auto nva = std::vector<nghttp2_nv>();
nva.reserve(build_headers.size());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment