HTTP tidying

This commit is contained in:
Vinnie Falco
2018-12-19 21:51:49 -08:00
parent 3a3f9c459e
commit 9ccd8a754a
4 changed files with 24 additions and 44 deletions
+3 -2
View File
@@ -48,7 +48,7 @@ struct chunk_crlf
#if BOOST_BEAST_DOXYGEN
using value_type = __implementation_defined__;
#else
using value_type = detail::chunk_crlf_iter::value_type;
using value_type = net::const_buffer;
#endif
/// Required for @b ConstBufferSequence
@@ -61,7 +61,8 @@ struct chunk_crlf
const_iterator
begin() const
{
return &detail::chunk_crlf_iter::value;
static net::const_buffer const cb{"\r\n", 2};
return &cb;
}
/// Required for @b ConstBufferSequence