You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TWO zero-sized chunks are emitted, breaking HTTP framing. Only if data is actually set to nullptr, this works.
My usecase is serializing a sequence of std::string_view, using an empty one as EOM marker. An empty string view may have a non-null data pointer. Only if I do
this becomes safe. One could argue that beast is so low-level that the caller has to know about this subtle difference, but as the 0-sized chunk has a very specific meaning in HTTP, IMO a safeguard against this could be warranted.