1
0
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:
Stefan Fritsch
2012-07-15 21:19:54 +00:00
parent 8c960a8c15
commit 8ec0c56b02
5 changed files with 5 additions and 5 deletions

View File

@@ -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 */

View File

@@ -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);

View File

@@ -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

View File

@@ -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

View File

@@ -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;