Bug 58121 - ProxyHTMLMeta seems to ignore all <meta http-equiv="Content-***
Summary: ProxyHTMLMeta seems to ignore all <meta http-equiv="Content-***
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy_html (show other bugs)
Version: 2.4-HEAD
Hardware: PC All
: P2 normal with 2 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2015-07-10 06:35 UTC by silencer018
Modified: 2017-12-16 22:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description silencer018 2015-07-10 06:35:33 UTC
http://httpd.apache.org/docs/2.4/mod/mod_proxy_html.html#proxyhtmlmeta

During my test, when ProxyHTMLMeta is specified,  I found:

1) <meta http-equiv="Content-Type" content="xxx; charset=xxx">  is not added to the response header and the <meta...> tag is also removed from the response body part.

2) <meta http-equiv="Content-Language" content="en-US"> is not added to the response header but the  <meta..> tag is left in the response body.

3) ALl other <meta http-equiv=***> which does not start with "Content-" can be successfully add to the response header.

I want to know is the result correct for test 1) and 2) ? Why Content-Language are not added to the response header ?
Comment 1 Nick Kew 2017-12-16 21:04:20 UTC
(In reply to silencer018 from comment #0)
> http://httpd.apache.org/docs/2.4/mod/mod_proxy_html.html#proxyhtmlmeta
> 
> During my test, when ProxyHTMLMeta is specified,  I found:
> 
> 1) <meta http-equiv="Content-Type" content="xxx; charset=xxx">  is not added
> to the response header and the <meta...> tag is also removed from the
> response body part.

This is correct (and documented, but I'm reviewing the docs).  libxml2 works internally in utf-8, and mod_proxy_html will always output utf-8 unless overridden by ProxyHTMLCharsetOut.

> 2) <meta http-equiv="Content-Language" content="en-US"> is not added to the
> response header but the  <meta..> tag is left in the response body.

Whoops, confirmed, that looks like a bug!  Investigating.  Damn, can't close this bug yet.
Comment 2 Nick Kew 2017-12-16 22:05:48 UTC
Fixed in trunk in r1818457 .