Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Beast includes CRLF in HTTP fields
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2018-07-07 15:43:40


On Sat, Jul 7, 2018 at 8:34 AM, David Demelier via Boost-users
<boost-users_at_[hidden]> wrote:
> I wrongly converted the boost::string_view to std::string
> using the .data() member function and I just realized it's
> not null terminated...

Ah! Glad to see the mystery is solved.

However, you would be better off working directly with the string_view
instead of constructing a string, to avoid an unnecessary dynamic
memory allocation.

Regards


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net