Merge branch 'improvement/JAL-4409_implement_extra_schemes_in_getdown' into develop
[jalview.git] / src / jalview / ext / paradise / Annotate3D.java
index 3817ee9..aafed20 100644 (file)
@@ -36,6 +36,7 @@ import org.apache.http.message.BasicNameValuePair;
 import org.json.simple.parser.ContentHandler;
 import org.json.simple.parser.ParseException;
 
+import jalview.util.HttpUtils;
 import jalview.util.JSONUtils;
 import jalview.util.MessageManager;
 import jalview.ws.HttpClientUtils;
@@ -180,7 +181,7 @@ public class Annotate3D
     // return processJsonResponseFor(new
     // InputStreamReader(geturl.openStream()));
     ArrayList<Reader> readers = new ArrayList<>();
-    readers.add(new InputStreamReader(geturl.openStream()));
+    readers.add(new InputStreamReader(HttpUtils.openStream(geturl)));
     return readers.iterator();
   }