From 11fe787c0a62e70efb85935ae68b53e59f34c064 Mon Sep 17 00:00:00 2001 From: mathieu-pousse Date: Wed, 25 Sep 2013 20:23:56 +0300 Subject: [PATCH] [FIXED JENKINS-19752] write in the correct outputstream --- core/src/main/java/hudson/model/DirectoryBrowserSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/model/DirectoryBrowserSupport.java b/core/src/main/java/hudson/model/DirectoryBrowserSupport.java index f144061eb466..09e07bed2dd3 100644 --- a/core/src/main/java/hudson/model/DirectoryBrowserSupport.java +++ b/core/src/main/java/hudson/model/DirectoryBrowserSupport.java @@ -345,7 +345,7 @@ private static void zip(OutputStream outputStream, VirtualFile dir, String glob) VirtualFile f = dir.child(n); e.setTime(f.lastModified()); zos.putNextEntry(e); - Util.copyStream(f.open(), outputStream); + Util.copyStream(f.open(), zos); zos.closeEntry(); } zos.close();