mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Code clean up (remove useless memory allocation)
Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr> PR: 52648 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361803 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -894,7 +894,7 @@ static int APR_THREAD_FUNC regfnServerSupportFunction(isapi_cid *cid,
|
||||
}
|
||||
|
||||
/* Reset the method to GET */
|
||||
r->method = apr_pstrdup(r->pool, "GET");
|
||||
r->method = "GET";
|
||||
r->method_number = M_GET;
|
||||
|
||||
/* Don't let anyone think there's still data */
|
||||
|
@@ -70,7 +70,7 @@ static int asis_handler(request_rec *r)
|
||||
/* This redirect needs to be a GET no matter what the original
|
||||
* method was.
|
||||
*/
|
||||
r->method = apr_pstrdup(r->pool, "GET");
|
||||
r->method = "GET";
|
||||
r->method_number = M_GET;
|
||||
|
||||
ap_internal_redirect_handler(location, r);
|
||||
|
@@ -993,7 +993,7 @@ static int cgi_handler(request_rec *r)
|
||||
/* This redirect needs to be a GET no matter what the original
|
||||
* method was.
|
||||
*/
|
||||
r->method = apr_pstrdup(r->pool, "GET");
|
||||
r->method = "GET";
|
||||
r->method_number = M_GET;
|
||||
|
||||
/* We already read the message body (if any), so don't allow
|
||||
|
@@ -1594,7 +1594,7 @@ static int cgid_handler(request_rec *r)
|
||||
/* This redirect needs to be a GET no matter what the original
|
||||
* method was.
|
||||
*/
|
||||
r->method = apr_pstrdup(r->pool, "GET");
|
||||
r->method = "GET";
|
||||
r->method_number = M_GET;
|
||||
|
||||
/* We already read the message body (if any), so don't allow
|
||||
|
@@ -197,7 +197,7 @@ AP_DECLARE(void) ap_die(int type, request_rec *r)
|
||||
"error-notes")) != NULL) {
|
||||
apr_table_setn(r->subprocess_env, "ERROR_NOTES", error_notes);
|
||||
}
|
||||
r->method = apr_pstrdup(r->pool, "GET");
|
||||
r->method = "GET";
|
||||
r->method_number = M_GET;
|
||||
ap_internal_redirect(custom_response, r);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user