提交 758222b7 编写于 作者: K kohsuke

simplified.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6408 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d503db16
......@@ -1761,10 +1761,7 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
String contentType = req.getServletContext().getMimeType(f.getPath());
rsp.setContentType(contentType);
rsp.setContentLength((int)f.length());
byte[] buf = new byte[1024];
int len;
while((len=in.read(buf))>0)
rsp.getOutputStream().write(buf,0,len);
Util.copyStream(in,rsp.getOutputStream());
in.close();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册