Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d9f5340 authored by Martin Herndl's avatar Martin Herndl Committed by Danny Baumann
Browse files

Lookup: use a more up-to-date user agent

For example "Whitepages" dislikes the old user agent and just answers
with an empty response. This one is closely related and hopefully
more future-proof.

Change-Id: I475375fb5692c5ed6b276a809b5dba401d0783b2
parent 16360c88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ import java.util.regex.Pattern;

public class LookupUtils {
    private static final String USER_AGENT =
            "Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0";
            "Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0";

    private static HttpURLConnection prepareHttpConnection(String url, Map<String, String> headers)
            throws IOException {