What is the relevant hook to set a cookie / print a header on the search results page?
At the moment, I have tried a simple subroutine, that just prints "Content-type:text/plain". This is then called from each of these hooks:
search_results PRE Plugins::SetCookie::main FIRST
site_html_search_results PRE Plugins::SetCookie::main FIRST
site_html_search_results POST Plugins::SetCookie::main FIRST
search_results POST Plugins::SetCookie::main FIRST
Then, when I run my search results, all I get is
Content-type:text/plain Content-type: text/html Content-type:text/plain Content-type:text/plain
followed by the normal document contents.
{ How do I override the existing header? }
At the moment, I have tried a simple subroutine, that just prints "Content-type:text/plain". This is then called from each of these hooks:
search_results PRE Plugins::SetCookie::main FIRST
site_html_search_results PRE Plugins::SetCookie::main FIRST
site_html_search_results POST Plugins::SetCookie::main FIRST
search_results POST Plugins::SetCookie::main FIRST
Then, when I run my search results, all I get is
Content-type:text/plain Content-type: text/html Content-type:text/plain Content-type:text/plain
followed by the normal document contents.
{ How do I override the existing header? }