[JENKINS-5271] https wants to join the party

This commit is contained in:
Kohsuke Kawaguchi committed 2011-09-18 16:17:44 -07:00
1 parent 9207c21f37
commit beb166680e
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -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"))