mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
bug 4161: using empty User-Agent in ReverseGeocoder
Change-Id: I9fbcd1b9cefebf6bd19a7a4eafb38e1cceaa7387
This commit is contained in:
+1
@@ -258,6 +258,7 @@ public class ReverseGeocoderImpl implements ReverseGeocoder {
|
||||
|
||||
URL request = new URL(url.toString());
|
||||
URLConnection connection = request.openConnection();
|
||||
connection.setRequestProperty("User-Agent", "");
|
||||
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream(), Charset.forName("UTF-8")));
|
||||
JSONParser parser = new JSONParser();
|
||||
JSONObject obj = (JSONObject) parser.parse(in);
|
||||
|
||||
Reference in New Issue
Block a user