From deuce@VERT to CVS commit on Friday, June 21, 2019 19:53:29
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
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.
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net