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

Commit f9d9ba53 authored by Romain Hunault's avatar Romain Hunault Committed by Abhishek Aggarwal
Browse files

Updater: Change default user-agent

Change-Id: Ie5d8624b4fa92012459a7c4e05494a926024bba0
parent 3af2fbec
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -58,6 +58,11 @@ public class HttpURLConnectionClient implements DownloadClient {
            DownloadClient.DownloadCallback callback,
            boolean useDuplicateLinks) throws IOException {
        mClient = (HttpURLConnection) new URL(url).openConnection();

        String defaultUserAgent = mClient.getRequestProperty("User-Agent");
        String newUserAgent = defaultUserAgent+" ota_007_eels";
        mClient.setRequestProperty("User-Agent", newUserAgent);

        mDestination = destination;
        mProgressListener = progressListener;
        mCallback = callback;