summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFijxu <fijxu@nadeko.net>2025-05-10 23:02:34 -0400
committerGitHub <noreply@github.com>2025-05-10 23:02:34 -0400
commitaab6ff4bb6e4d3174ab812e5a2cdeec841d2358e (patch)
tree7b3b4af789473f3a14982c9369e09a2ca1e1bf24 /src
parent1492453c6018c633e944f08b93ecf054599caa62 (diff)
downloadinvidious-aab6ff4bb6e4d3174ab812e5a2cdeec841d2358e.tar.gz
invidious-aab6ff4bb6e4d3174ab812e5a2cdeec841d2358e.tar.bz2
invidious-aab6ff4bb6e4d3174ab812e5a2cdeec841d2358e.zip
Update src/invidious/routes/before_all.cr
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/invidious/routes/before_all.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/routes/before_all.cr b/src/invidious/routes/before_all.cr
index b5269668..0c7bbdc2 100644
--- a/src/invidious/routes/before_all.cr
+++ b/src/invidious/routes/before_all.cr
@@ -114,7 +114,7 @@ module Invidious::Routes::BeforeAll
# configuration file, causing preference “Proxy Videos”
# not to work while having it disabled and using medium quality.
if CONFIG.disabled?("local") || !preferences.local
- env.response.headers["Content-Security-Policy"] = env.response.headers["Content-Security-Policy"].gsub("media-src", "media-src https://*.googlevideo.com:443 https://*.youtube.com:443")
+ env.response.headers.update("Content-Security-Policy", &.gsub("media-src", "media-src https://*.googlevideo.com:443 https://*.youtube.com:443"))
end
current_page = env.request.path