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:
@@ -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
|
||||
|
Reference in New Issue
Block a user