Skip to content
Permalink
Browse files
[JENKINS-5271] https wants to join the party
Cherry-picked-from: beb1666
  • Loading branch information
kohsuke committed Oct 21, 2011
1 parent 9db0b51 commit cfa6eabe7409aae89a2c701ddeee42c978e654c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/FilePath.java
@@ -630,7 +630,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"))

0 comments on commit cfa6eab

Please sign in to comment.