fielding 98/01/22 20:11:33
Modified: src/main http_protocol.c Log: The other half of the fix for when die() happens we need to eat any request body if one exists. The hack for ErrorDocument is removed since it interferes with the fix and should not be needed anyway. PR: 1399 Revision Changes Path 1.178 +4 -4 apachen/src/main/http_protocol.c Index: http_protocol.c =================================================================== RCS file: /export/home/cvs/apachen/src/main/http_protocol.c,v retrieving revision 1.177 retrieving revision 1.178 diff -u -r1.177 -r1.178 --- http_protocol.c 1998/01/20 15:28:38 1.177 +++ http_protocol.c 1998/01/23 04:11:32 1.178 @@ -1391,13 +1391,13 @@ API_EXPORT(int) should_client_block(request_rec *r) { - if (r->read_length || is_HTTP_ERROR(r->status)) - return 0; + /* First check if we have already read the request body */ - if (!r->read_chunked && (r->remaining <= 0)) + if (r->read_length || (!r->read_chunked && (r->remaining <= 0))) return 0; - if (r->proto_num >= HTTP_VERSION(1,1)) { /* sending 100 Continue interim response */ + if (r->proto_num >= HTTP_VERSION(1,1)) { + /* sending 100 Continue interim response */ bvputs(r->connection->client, SERVER_PROTOCOL, " ", status_lines[0], "\015\012\015\012", NULL);