提交 beb16668 编写于 作者: K Kohsuke Kawaguchi

[JENKINS-5271] https wants to join the party

上级 9207c21f
......@@ -55,6 +55,9 @@ Upcoming changes</a>
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=bug>
Tools download does not respect proxy settings
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-5271">issue 5271</a>)
<li class=bug>
Recover from a corrupted JSON update data file automatically
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-7034">issue 7034</a>)
......
......@@ -655,7 +655,7 @@ public final class FilePath implements Serializable {
listener.getLogger().println(message);
// for HTTP downloads, enable automatic retry for added resilience
InputStream in = archive.getProtocol().equals("http") ? ProxyConfiguration.getInputStream(archive) : con.getInputStream();
InputStream in = archive.getProtocol().startsWith("http") ? ProxyConfiguration.getInputStream(archive) : con.getInputStream();
CountingInputStream cis = new CountingInputStream(in);
try {
if(archive.toExternalForm().endsWith(".zip"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册