mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-09-12 01:06:28 +02: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();
|
||||
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
|
||||
connection.setRequestMethod(route.getMethod().name());
|
||||
// TODO: change the user agent string
|
||||
connection.setRequestProperty("User-agent", System.getProperty("http.agent") + ";vanced");
|
||||
connection.setRequestProperty("User-agent", System.getProperty("http.agent") + ";revanced");
|
||||
|
||||
return connection;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user