Merge branch 'improvement/JAL-4409_implement_extra_schemes_in_getdown' into develop
[jalview.git] / src / jalview / ext / ensembl / EnsemblRestClient.java
index 709136c..3cc778a 100644 (file)
@@ -36,6 +36,7 @@ import javax.ws.rs.HttpMethod;
 
 import org.json.simple.parser.ParseException;
 
+import jalview.util.HttpUtils;
 import jalview.util.Platform;
 import jalview.util.StringUtils;
 
@@ -342,7 +343,8 @@ abstract class EnsemblRestClient extends EnsemblSequenceFetcher
   {
     // jalview.bin.Console.outPrintln(System.currentTimeMillis() + " " + url);
 
-    HttpURLConnection connection = (HttpURLConnection) url.openConnection();
+    HttpURLConnection connection = (HttpURLConnection) HttpUtils
+            .openConnection(url);
 
     /*
      * POST method allows multiple queries in one request; it is supported for