mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
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:
@ -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`
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -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
|
||||
|
@ -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");
|
||||
|
Reference in New Issue
Block a user