11 Dec
2020
11 Dec
'20
9:18 p.m.
On Fri, Dec 11, 2020 at 8:15 PM Vinnie Falco
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::responsehttp::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