]> mj.ucw.cz Git - gallery.git/commitdiff
Gallery2: Archive has a file name
authorMartin Mares <mj@ucw.cz>
Sat, 29 Dec 2012 22:35:19 +0000 (23:35 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 8 Feb 2015 20:14:16 +0000 (21:14 +0100)
gal2/UCW/Gallery/Archive.pm

index 0cf8553dc857694108084aeab58874eb50b6466e..fb7c40b45656d9d289b59097ba2c082de1d3fc1f 100644 (file)
@@ -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);
 }