On Fri, Dec 11, 2020 at 8:15 PM Vinnie Falco <vinnie.fa...@gmail.com> wrote:

> > I'm fairly sure it's user-error, but it's not easy to figure out for a
> Beast novice like myself. --DD
>
> Your response is 200 OK, but you aren't setting Content-Length: 0.
>

Well, I did that on purpose :). I thought
`http::response<http::empty_body>` implied the zero Content-Length...


> For your message, has_content_length() would return false (since you
> aren't setting it). Try adding:
>     res.content_length( 0 );
>

Works!


> or
>     res.prepare_payload();
>

Works as well.


> Thanks
>

Thank you Vinnie! One less thing to worry about this week-end, thanks
again. --DD
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users

Reply via email to