11 Dec
2020
11 Dec
'20
7:15 p.m.
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. Under HTTP rules this means that the end of the body is indicated by an end of file. The documentation for need_eof explains this: https://www.boost.org/doc/libs/1_74_0/libs/beast/doc/html/beast/ref/boost__b... See: "* has_content_length would return true." For your message, has_content_length() would return false (since you aren't setting it). Try adding: res.content_length( 0 ); or res.prepare_payload(); Thanks