Skip to content

Commit

Permalink
fix(youtube/sponsorblock): update HTTP user agent (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios authored and oSumAtrIX committed Apr 16, 2023
1 parent e3529cf commit 3025103
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -19,8 +19,7 @@ public static HttpURLConnection getConnectionFromRoute(String apiUrl, Route rout
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;
}
Expand Down

0 comments on commit 3025103

Please sign in to comment.