Project

General

Profile

« Previous | Next » 

Revision 2556

Added by sgarg over 19 years ago

Added the patch provided by Johnoel. Check out the following link to bugzilla for more info: http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2081

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
943 943
            // Get output stream
944 944
            out = response.getOutputStream();
945 945
            response.setContentType("application/zip"); //MIME type
946
            response.setHeader("Content-Disposition", 
947
            		"attachment; filename=" 
948
            		+ docId + ".zip"); // Set the name of the zip file
949
            		
946 950
            zOut = new ZipOutputStream(out);
947 951
            zOut = queryObj
948 952
                    .getZippedPackage(docId, out, user, groups, passWord);

Also available in: Unified diff