git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
JAL-4409 Don't insist on HttpURLConnection, allows for file:/ protocol connection
[jalview.git]
/
src
/
jalview
/
ws
/
ebi
/
EBIFetchClient.java
diff --git
a/src/jalview/ws/ebi/EBIFetchClient.java
b/src/jalview/ws/ebi/EBIFetchClient.java
index
87526a1
..
5a5e9ae
100644
(file)
--- a/
src/jalview/ws/ebi/EBIFetchClient.java
+++ b/
src/jalview/ws/ebi/EBIFetchClient.java
@@
-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)
{