dgaudet 98/03/09 22:13:52
Modified: src CHANGES src/main http_protocol.c Log: rputs() did not calculate r->sent_bodyct properly. PR: 1900 Submitted by: Siegmund Stirnweiss <[EMAIL PROTECTED]> Revision Changes Path 1.696 +3 -0 apache-1.3/src/CHANGES Index: CHANGES =================================================================== RCS file: /export/home/cvs/apache-1.3/src/CHANGES,v retrieving revision 1.695 retrieving revision 1.696 diff -u -r1.695 -r1.696 --- CHANGES 1998/03/10 05:14:16 1.695 +++ CHANGES 1998/03/10 06:13:47 1.696 @@ -1,5 +1,8 @@ Changes with Apache 1.3b6 + *) rputs() did not calculate r->sent_bodyct properly. + [Siegmund Stirnweiss <[EMAIL PROTECTED]>] PR#1900 + *) The CGI spec says that REMOTE_HOST should be set to the remote hosts's name, or left unset if this value is unavailable. Apache was setting it to the IP address when unavailable. 1.195 +4 -1 apache-1.3/src/main/http_protocol.c Index: http_protocol.c =================================================================== RCS file: /export/home/cvs/apache-1.3/src/main/http_protocol.c,v retrieving revision 1.194 retrieving revision 1.195 diff -u -r1.194 -r1.195 --- http_protocol.c 1998/03/04 02:28:16 1.194 +++ http_protocol.c 1998/03/10 06:13:50 1.195 @@ -1793,10 +1793,13 @@ API_EXPORT(int) rputs(const char *str, request_rec *r) { + int rcode; + if (r->connection->aborted) return EOF; + rcode = bputs(str, r->connection->client); SET_BYTES_SENT(r); - return bputs(str, r->connection->client); + return rcode; } API_EXPORT(int) rwrite(const void *buf, int nbyte, request_rec *r)