Skip to content

Commit

Permalink
[JENKINS-5271] https wants to join the party
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Sep 18, 2011
1 parent 9207c21 commit beb1666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -55,6 +55,9 @@
<!-- 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>)
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/FilePath.java
Expand Up @@ -655,7 +655,7 @@ public boolean installIfNecessaryFrom(URL archive, TaskListener listener, String
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"))
Expand Down

0 comments on commit beb1666

Please sign in to comment.