Commit 9c7035f4 authored by Romain Hunault's avatar Romain Hunault Committed by Romain Hunault

Change default user-agent

parent 462c1238
......@@ -62,6 +62,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment