Skip to content

Commit

Permalink
Add missing header
Browse files Browse the repository at this point in the history
  • Loading branch information
YT-Advanced authored Dec 13, 2024
1 parent 089ae1d commit 77bcf85
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ static HttpURLConnection getPlayerResponseConnectionFromRoute(Route.CompiledRout

connection.setRequestProperty("Content-Type", "application/json");
connection.setRequestProperty("User-Agent", clientType.userAgent);
connection.setRequestProperty("X-YouTube-Client-Name", clientType.id);
connection.setRequestProperty("X-YouTube-Client-Version", clientType.clientVersion);

connection.setUseCaches(false);
connection.setDoOutput(true);
Expand All @@ -100,4 +102,4 @@ static HttpURLConnection getPlayerResponseConnectionFromRoute(Route.CompiledRout
connection.setReadTimeout(CONNECTION_TIMEOUT_MILLISECONDS);
return connection;
}
}
}

0 comments on commit 77bcf85

Please sign in to comment.