Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Beast includes CRLF in HTTP fields
From: David Demelier (markand_at_[hidden])
Date: 2018-07-08 07:47:27

On Sat, 2018-07-07 at 13:48 -0400, Daniel Anderson wrote:
> Why do you use data() without using size()/length() ?
> with string_view this is a recipe for hard to find bugs.

Because at that time I didn't know that it was not null terminated and
I needed a way to convert the boost::string_view to std::string because
I need to make a copy of the Beast's result.



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at