From cda0cfbe3c69fa260ba7e5ce9b50853dfba7cc97 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 8 Sep 2016 14:40:13 -0700 Subject: add delivery of spreadsheet/CSV reports, #72101 --- httemplate/search/elements/search-xls.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/search/elements') diff --git a/httemplate/search/elements/search-xls.html b/httemplate/search/elements/search-xls.html index c4265e8c8..f2b0bad50 100644 --- a/httemplate/search/elements/search-xls.html +++ b/httemplate/search/elements/search-xls.html @@ -22,7 +22,7 @@ http_header('Content-Disposition' => qq!attachment;filename="$filename"! ); #http://support.microsoft.com/kb/812935 #http://support.microsoft.com/kb/323308 -$HTML::Mason::Commands::r->headers_out->{'Cache-control'} = 'max-age=0'; +http_header('Cache-control' => 'max-age=0'); my $data = ''; my $XLS = new IO::Scalar \$data; -- cgit v1.2.1