Skip to content

Commit

Permalink
[JENKINS-5271] https wants to join the party
Browse files Browse the repository at this point in the history
Cherry-picked-from: beb1666
  • Loading branch information
kohsuke committed Oct 21, 2011
1 parent 9db0b51 commit cfa6eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/FilePath.java
Expand Up @@ -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"))
Expand Down

0 comments on commit cfa6eab

Please sign in to comment.