From: Martin Mares Date: Sat, 29 Dec 2012 22:35:19 +0000 (+0100) Subject: Gallery2: Archive has a file name X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9e3e5db1ef5202eafd4561418df712e6743df2c5;p=gallery.git Gallery2: Archive has a file name --- diff --git a/gal2/UCW/Gallery/Archive.pm b/gal2/UCW/Gallery/Archive.pm index 0cf8553..fb7c40b 100644 --- a/gal2/UCW/Gallery/Archive.pm +++ b/gal2/UCW/Gallery/Archive.pm @@ -25,7 +25,9 @@ sub send_archive($$) { $cnt++; } - print "Content-type: application/zip\n\n"; + print "Content-type: application/zip\n"; + print "Content-Disposition: attachment; filename=gallery.zip\n"; + print "\n"; $zip->writeToFileHandle(\*STDOUT, 0); }