JAL-4409 Don't insist on HttpURLConnection, allows for file:/ protocol connection
[jalview.git] / src / jalview / ext / pymol / PymolManager.java
index 05c5053..80327b8 100644 (file)
@@ -168,7 +168,8 @@ public class PymolManager
     try
     {
       URL realUrl = new URL(rpcUrl);
-      HttpURLConnection conn = HttpUtils.openConnection(realUrl);
+      HttpURLConnection conn = (HttpURLConnection) HttpUtils
+              .openConnection(realUrl);
       conn.setRequestProperty("accept", "*/*");
       conn.setRequestProperty("content-type", "text/xml");
       conn.setDoOutput(true);