From: Ben Soares Date: Wed, 23 Sep 2020 22:41:36 +0000 (+0100) Subject: JAL-3757 JAL-3689 Fixed checks for URLs by adding checks for https:// as well as... X-Git-Tag: Develop-2_11_2_0-d20201215~15^2~10 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e32a5ade6bf19aca615f33b4664bbb6bcf4d2529;p=jalview.git JAL-3757 JAL-3689 Fixed checks for URLs by adding checks for https:// as well as --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index b1ea60b..3bc92ec 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -781,7 +781,7 @@ public class Jalview protocol = DataSourceType.FILE; - if (file.indexOf("http:") > -1) + if (HttpUtils.startsWithHttpOrHttps(file)) { protocol = DataSourceType.URL; }