mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 12:57: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`
|
* Handle overflow in max size calculation in `basic_dynamic_body`
|
||||||
* Fix unused variable warnings in tests
|
* 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())
|
if(it == end())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
detail::filter_token_list_last(buf, it->value(), {"chunked"});
|
detail::filter_token_list_last(buf, it->value(), {"chunked", {}});
|
||||||
if(! buf.empty())
|
if(! buf.empty())
|
||||||
set(field::transfer_encoding, buf.view());
|
set(field::transfer_encoding, buf.view());
|
||||||
else
|
else
|
||||||
|
@ -95,7 +95,7 @@ keep_alive_impl(
|
|||||||
if(keep_alive)
|
if(keep_alive)
|
||||||
{
|
{
|
||||||
// remove close
|
// remove close
|
||||||
filter_token_list(s, value, iequals_predicate{"close"});
|
filter_token_list(s, value, iequals_predicate{"close", {}});
|
||||||
// add keep-alive
|
// add keep-alive
|
||||||
if(s.empty())
|
if(s.empty())
|
||||||
s.append("keep-alive");
|
s.append("keep-alive");
|
||||||
@ -120,7 +120,7 @@ keep_alive_impl(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// remove keep-alive
|
// remove keep-alive
|
||||||
filter_token_list(s, value, iequals_predicate{"keep-alive"});
|
filter_token_list(s, value, iequals_predicate{"keep-alive", {}});
|
||||||
// add close
|
// add close
|
||||||
if(s.empty())
|
if(s.empty())
|
||||||
s.append("close");
|
s.append("close");
|
||||||
|
Reference in New Issue
Block a user