bug 4161: using empty User-Agent in ReverseGeocoder

Change-Id: I9fbcd1b9cefebf6bd19a7a4eafb38e1cceaa7387
This commit is contained in:
Axel Uhl
2017-06-09 01:59:26 +02:00
parent 47bec34c18
commit 6b42c4caac
2 changed files with 10 additions and 2 deletions
@@ -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);