diff options
author | Joe Orton <jorton@apache.org> | 2012-07-23 15:34:05 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2012-07-23 15:34:05 +0000 |
commit | 54da5520641b11a0ececc0355fda6dd0fe014099 (patch) | |
tree | d8cd5073cc8e67a671b8bef03fd0f4fa6c0e3045 /modules/generators | |
parent | 56cbb0f3389f39cdbde947cf56a9d621435eb71f (diff) | |
download | httpd-54da5520641b11a0ececc0355fda6dd0fe014099.tar.gz |
Merge r1361803 from trunk:
Code clean up (remove useless memory allocation)
Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>
PR: 52648
Reviewed by: rjung, jim, jorton
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1364681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/generators')
-rw-r--r-- | modules/generators/mod_asis.c | 2 | ||||
-rw-r--r-- | modules/generators/mod_cgi.c | 2 | ||||
-rw-r--r-- | modules/generators/mod_cgid.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/generators/mod_asis.c b/modules/generators/mod_asis.c index 1fc14389a5..c947e30360 100644 --- a/modules/generators/mod_asis.c +++ b/modules/generators/mod_asis.c @@ -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); diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 385bb36495..a609654524 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -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 diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 1e4aaf67af..2c2e627211 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -1593,7 +1593,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 |