mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-22 20:13:52 +00:00
bug3534: also use also the redirection for update RemoveServer
This commit is contained in:
1 parent
938e1e8cbc
commit
fc87ad2e91
3 files changed
+40
-27
No files matched your search
+2
-2
@@ -32,6 +32,7 @@ import com.sap.sailing.server.gateway.deserialization.impl.LeaderboardGroupBaseJ
|
||||
import com.sap.sailing.server.gateway.deserialization.impl.VenueJsonDeserializer;
|
||||
import com.sap.sse.common.Util;
|
||||
import com.sap.sse.common.Util.Pair;
|
||||
import com.sap.sse.util.HttpURLConnectionHelper;
|
||||
|
||||
/**
|
||||
* A set of {@link RemoteSailingServerReference}s including a cache of their {@link EventBase events} that is
|
||||
@@ -101,8 +102,7 @@ public class RemoteSailingServerSet {
|
||||
try {
|
||||
final URL eventsURL = getEventsURL(ref.getURL());
|
||||
logger.fine("Updating events for remote server "+ref+" from URL "+eventsURL);
|
||||
URLConnection urlConnection = eventsURL.openConnection();
|
||||
urlConnection.connect();
|
||||
URLConnection urlConnection = HttpURLConnectionHelper.redirectConnection(eventsURL);
|
||||
bufferedReader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream(), "UTF-8"));
|
||||
JSONParser parser = new JSONParser();
|
||||
Object eventsAsObject = parser.parse(bufferedReader);
|
||||
|
||||
Reference in new issue
Block a user