mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd::http: Fix binary op (gnu++20).
This commit is contained in:
parent
211ea6ba55
commit
5faadaa000
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
const size_t initial{!headers.empty()};
|
||||
return std::accumulate(std::begin(headers), std::end(headers), initial, []
|
||||
(auto &ret, const auto &pair)
|
||||
(auto &&ret, const auto &pair)
|
||||
{
|
||||
// key : SP value CRLF
|
||||
return ret += pair.first.size() + 1 + 1 + pair.second.size() + 2;
|
||||
|
|
Loading…
Reference in a new issue