Apache2-HttpEquiv
view release on metacpan or search on metacpan
Apache2::HttpEquiv version 1.00, released January 4, 2014
This module provides a PerlFixupHandler for mod_perl 2 that turns
<meta http-equiv="Header-Name" content="Header Value"> into an actual
HTTP header. It also looks for <meta charset="..."> and uses it to
set the Content-Type.
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
lib/Apache2/HttpEquiv.pm view on Meta::CPAN
In your Apache config:
<Location />
PerlFixupHandler Apache2::HttpEquiv
</Location>
=head1 DESCRIPTION
Apache2::HttpEquiv provides a PerlFixupHandler for mod_perl 2 that turns
C<< <meta http-equiv="Header-Name" content="Header Value"> >> into an actual
HTTP header. It also looks for C<< <meta charset="..."> >> and uses it to
set the Content-Type to C<text/html; charset=...>.
If the file claims its Content-Type is 'text/xhtml', the Content-Type
is set to 'text/html' instead. 'text/xhtml' is not a valid
Content-Type, and any file that claims it is probably too broken to
parse as 'application/xhtml+xml'.
This works only for static HTML files (that Apache has identified as
'text/html'). If you're generating dynamic content, you should be
generating the appropriate Content-Type and other headers at the same
( run in 0.370 second using v1.01-cache-2.11-cpan-64827b87656 )