From b32405507c3b860fc866fb8c46f0797d5ac53783 Mon Sep 17 00:00:00 2001 From: kados Date: Sat, 4 Mar 2006 04:25:08 +0000 Subject: [PATCH] force browser to download rather than render the MARC file --- export/marc.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/export/marc.pl b/export/marc.pl index 7e489abc12..8eb41fa51b 100755 --- a/export/marc.pl +++ b/export/marc.pl @@ -15,7 +15,8 @@ my $op=$query->param("op"); my $dbh=C4::Context->dbh; if ($op eq "export") { - print $query->header('Content-Type: text/marc'); + print $query->header( -type => 'application/octet-stream', + -attachment=>'koha.mrc'); my $start_bib = $query->param("start_bib"); my $end_bib = $query->param("end_bib"); my $format = $query->param("format"); -- 2.39.5