]> granicus.if.org Git - apache/commitdiff
Save a few bytes in the conf pool when handling 'ProxyHTMLDoctype' directive with...
authorChristophe Jaillet <jailletc36@apache.org>
Wed, 1 Nov 2017 20:29:12 +0000 (20:29 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Wed, 1 Nov 2017 20:29:12 +0000 (20:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1813991 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_proxy_html.c

index 62f2bee2e3ee76b4fc06f1f2d03135d3ea190707..743f1437806c65d56c33645647908a8710fe51c6 100644 (file)
@@ -1181,7 +1181,7 @@ static const char *set_doctype(cmd_parms *cmd, void *CFG,
         cfg->doctype = fpi_html5;
     }
     else {
-        cfg->doctype = apr_pstrdup(cmd->pool, t);
+        cfg->doctype = t;
         if (l && ((l[0] == 'x') || (l[0] == 'X')))
             cfg->etag = xhtml_etag;
         else