From ed1db533c6f6d51ed7b544ae238dcef841f68ca9 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Wed, 10 Jan 2018 22:00:18 +0000 Subject: [PATCH] Merge r1813991 from trunk: Save a few bytes in the conf pool when handling 'ProxyHTMLDoctype' directive with a user defined FPI Submitted by: jailletc36 Reviewed by: jailletc36, niq, jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1820798 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_proxy_html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/filters/mod_proxy_html.c b/modules/filters/mod_proxy_html.c index 569fa13775..1ea005bf28 100644 --- a/modules/filters/mod_proxy_html.c +++ b/modules/filters/mod_proxy_html.c @@ -1133,7 +1133,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 -- 2.40.0