1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

Call ap_discard_request_body from ap_finalize_request. Remove the call

from all other modules that do not use it to determine the response for
the request.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan Bloom
2002-06-07 22:31:34 +00:00
parent b17d62b3a8
commit a90a9ba2be
3 changed files with 2 additions and 21 deletions

View File

@@ -145,17 +145,6 @@ AP_DECLARE(void) ap_die(int type, request_rec *r)
if (ap_status_drops_connection(r->status)) {
r->connection->keepalive = 0;
}
else if ((r->status != HTTP_NOT_MODIFIED) &&
(r->status != HTTP_NO_CONTENT) &&
r->connection && (r->connection->keepalive != -1)) {
/* If the discard returns AP_FILTER_ERROR, it means that we went
* recursive on ourselves and we should abort.
*/
int errstatus = ap_discard_request_body(r);
if (errstatus == AP_FILTER_ERROR) {
return;
}
}
/*
* Two types of custom redirects --- plain text, and URLs. Plain text has