summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com>2021-04-01 15:59:24 +0000
committerGitHub <noreply@github.com>2021-04-01 15:59:24 +0000
commitb794c5cfcffcc6b75dec3d61197db269128e5e48 (patch)
tree986576949907c9dda72228c7d8bbbf011207ff38 /src
parente08bea5f51c4cfb8aff790a2374e01e3f6ef48bf (diff)
downloadinvidious-b794c5cfcffcc6b75dec3d61197db269128e5e48.tar.gz
invidious-b794c5cfcffcc6b75dec3d61197db269128e5e48.tar.bz2
invidious-b794c5cfcffcc6b75dec3d61197db269128e5e48.zip
Set the request cookie to "YES+"
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/utils.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.cr
index 7a03b962..92d8a7bb 100644
--- a/src/invidious/helpers/utils.cr
+++ b/src/invidious/helpers/utils.cr
@@ -9,7 +9,7 @@ def add_yt_headers(request)
return if request.resource.starts_with? "/sorry/index"
request.headers["x-youtube-client-name"] ||= "1"
request.headers["x-youtube-client-version"] ||= "2.20200609"
- request.headers["cookie"] = "CONSENT=YES+cb.20210328-17-p0.en; " # New YT consent cookie for EU servers
+ request.headers["cookie"] = "CONSENT=YES+" # New YT consent cookie for EU servers
if !CONFIG.cookies.empty?
request.headers["cookie"] = "#{(CONFIG.cookies.map { |c| "#{c.name}=#{c.value}" }).join("; ")}; #{request.headers["cookie"]?}"
end