Fix missing initializer warning in basic_fields

clang complains about missing initializer (even though the field was
properly initialized by the default constructor).

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
Damian Jarek
2019-07-07 16:58:00 +02:00
parent 2c2ac8027c
commit c1565e1ff7
3 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@ Version 264:
* Handle overflow in max size calculation in `basic_dynamic_body`
* Fix unused variable warnings in tests
* Fix missing initializer warning in `basic_fields`
--------------------------------------------------------------------------------

View File

@ -916,7 +916,7 @@ set_chunked_impl(bool value)
if(it == end())
return;
detail::filter_token_list_last(buf, it->value(), {"chunked"});
detail::filter_token_list_last(buf, it->value(), {"chunked", {}});
if(! buf.empty())
set(field::transfer_encoding, buf.view());
else

View File

@ -95,7 +95,7 @@ keep_alive_impl(
if(keep_alive)
{
// remove close
filter_token_list(s, value, iequals_predicate{"close"});
filter_token_list(s, value, iequals_predicate{"close", {}});
// add keep-alive
if(s.empty())
s.append("keep-alive");
@ -120,7 +120,7 @@ keep_alive_impl(
else
{
// remove keep-alive
filter_token_list(s, value, iequals_predicate{"keep-alive"});
filter_token_list(s, value, iequals_predicate{"keep-alive", {}});
// add close
if(s.empty())
s.append("close");