0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd::http: Fix binary op (gnu++20).

This commit is contained in:
Jason Volk 2022-06-17 19:57:46 -07:00
parent 211ea6ba55
commit 5faadaa000

View file

@ -1145,7 +1145,7 @@ ircd::http::serialized(const vector_view<const header> &headers)
// indicate an extra space for a null string terminator to not overlof // indicate an extra space for a null string terminator to not overlof
const size_t initial{!headers.empty()}; const size_t initial{!headers.empty()};
return std::accumulate(std::begin(headers), std::end(headers), initial, [] return std::accumulate(std::begin(headers), std::end(headers), initial, []
(auto &ret, const auto &pair) (auto &&ret, const auto &pair)
{ {
// key : SP value CRLF // key : SP value CRLF
return ret += pair.first.size() + 1 + 1 + pair.second.size() + 2; return ret += pair.first.size() + 1 + 1 + pair.second.size() + 2;