Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/provider/filetransfer/httpclient/HttpClientRetrieveFileTransfer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/provider/filetransfer/httpclient/HttpClientRetrieveFileTransfer.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/provider/filetransfer/httpclient/HttpClientRetrieveFileTransfer.java
index db0989399..bab59e366 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/provider/filetransfer/httpclient/HttpClientRetrieveFileTransfer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/provider/filetransfer/httpclient/HttpClientRetrieveFileTransfer.java
@@ -180,6 +180,8 @@ public class HttpClientRetrieveFileTransfer extends AbstractRetrieveFileTransfer
final int nextSlash = url.indexOf('/', colonSlashSlash + 4);
if (nextSlash > colon)
return url.substring(colonSlashSlash + 1, colon) + url.substring(nextSlash);
+ else if (nextSlash < 0)
+ return url.substring(colonSlashSlash + 1, colon);
}
return url.substring(colonSlashSlash + 1);

Back to the top