JAL-4409 Don't insist on HttpURLConnection, allows for file:/ protocol connection
[jalview.git] / src / jalview / ws / ebi / EBIFetchClient.java
index 87526a1..5a5e9ae 100644 (file)
@@ -210,7 +210,8 @@ public class EBIFetchClient
     try
     {
       URL rcall = new URL(url);
-      HttpURLConnection conn = HttpUtils.openConnection(rcall);
+      HttpURLConnection conn = (HttpURLConnection) HttpUtils
+              .openConnection(rcall);
       int responseCode = conn.getResponseCode();
       if (responseCode == 200)
       {