mirror of
https://github.com/revanced/revanced-integrations
synced 2024-11-27 11:13:38 +01:00
fix(youtube/sponsorblock): update HTTP user agent (#344)
This commit is contained in:
parent
e3529cfcec
commit
3025103014
@ -19,8 +19,7 @@ public class Requester {
|
|||||||
String url = apiUrl + route.compile(params).getCompiledRoute();
|
String url = apiUrl + route.compile(params).getCompiledRoute();
|
||||||
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
|
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
|
||||||
connection.setRequestMethod(route.getMethod().name());
|
connection.setRequestMethod(route.getMethod().name());
|
||||||
// TODO: change the user agent string
|
connection.setRequestProperty("User-agent", System.getProperty("http.agent") + ";revanced");
|
||||||
connection.setRequestProperty("User-agent", System.getProperty("http.agent") + ";vanced");
|
|
||||||
|
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user