Skip to content

Commit

Permalink
innertube: add comment explaining X-YouTube-Client-Name header
Browse files Browse the repository at this point in the history
  • Loading branch information
gechoto authored Jan 17, 2025
1 parent 89fc1a0 commit 21cb4d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class InnerTube {
contentType(ContentType.Application.Json)
headers {
append("X-Goog-Api-Format-Version", "1")
append("X-YouTube-Client-Name", client.clientId)
append("X-YouTube-Client-Name", client.clientId /* Not a typo. The Client-Name header does contain the client id. */)
append("X-YouTube-Client-Version", client.clientVersion)
append("X-Origin", YouTubeClient.ORIGIN_YOUTUBE_MUSIC)
append("Referer", YouTubeClient.REFERER_YOUTUBE_MUSIC)
Expand Down

0 comments on commit 21cb4d2

Please sign in to comment.