Gossamer Forum
Home : Products : Gossamer Links : Discussions :

change HTTP Response Header

Quote Reply
change HTTP Response Header
Hi,

I am a little lost. About one year ago I changed the code in a test installation to define the charset-type with utf8.
I cannot find the file any more and maybe someone (probably Andy) has a hint for me.
I can set header_charset in Misc. Options but as far as I can see that is for templates.
The idea is to define it in the header
https://gtmetrix.com/...acter-set-early.html

I would have expected to hack /GT/WWW/http/Header.pm -> sub header {

But that does not look like the shortest way, because I have to check if the charset is submitted and change it or if not submitted add $CFG->{header_charset}.

The other - not so short way would be to add -charset => $CFG->{header_charset} to all $IN->header() in Page.pm, Search.pm etc.

Thankful for any input, ideas or the shortest way.

n||i||k||o
Subject Author Views Date
Thread change HTTP Response Header el noe 7740 Oct 7, 2016, 8:13 AM
Thread Re: [el noe] change HTTP Response Header
Andy 7572 Oct 7, 2016, 10:33 AM
Thread Re: [Andy] change HTTP Response Header
el noe 7540 Oct 10, 2016, 8:54 AM
Post Re: [el noe] change HTTP Response Header
smartman 7497 Oct 10, 2016, 8:17 PM
Thread Re: [el noe] change HTTP Response Header
Andy 7502 Oct 11, 2016, 12:14 AM
Thread Re: [Andy] change HTTP Response Header
el noe 7502 Oct 11, 2016, 1:23 AM
Post Re: [el noe] change HTTP Response Header
Andy 7474 Oct 11, 2016, 3:42 AM