From deuce@1:103/705 to CVS commit on Fri Jun 21 12:53:29 2019
src/sbbs3 js_socket.c 1.228 1.229 websrvr.c 1.685 1.686
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv14579
Modified Files:
js_socket.c websrvr.c
Log Message:
Fix handling of responses with no content.
This introduces a new request field send_content which indicates if the
content should be sent. This covers various cases like HEAD responses
where there's an entity, but no content is sent as well as 204, 304, and 1xx responses where there is not even an entity.
writebuf() will now enforce this, so there's no need for various checks throughout the code to see if data should be sent or not.
Also, we now only set sent_headers after the headers are sent.