diff options
| author | Fijxu <fijxu@nadeko.net> | 2025-05-10 23:08:48 -0400 |
|---|---|---|
| committer | Fijxu <fijxu@nadeko.net> | 2025-05-10 23:08:48 -0400 |
| commit | 6fe21a7523c2c944ebc616e3573f50ee5fc6ce8f (patch) | |
| tree | 1226ce2699d242989754416e354cdfe016dbb19d /src | |
| parent | aab6ff4bb6e4d3174ab812e5a2cdeec841d2358e (diff) | |
| download | invidious-6fe21a7523c2c944ebc616e3573f50ee5fc6ce8f.tar.gz invidious-6fe21a7523c2c944ebc616e3573f50ee5fc6ce8f.tar.bz2 invidious-6fe21a7523c2c944ebc616e3573f50ee5fc6ce8f.zip | |
Revert "Update src/invidious/routes/before_all.cr"
This reverts commit aab6ff4bb6e4d3174ab812e5a2cdeec841d2358e.
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/routes/before_all.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/routes/before_all.cr b/src/invidious/routes/before_all.cr index 0c7bbdc2..b5269668 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.update("Content-Security-Policy", &.gsub("media-src", "media-src https://*.googlevideo.com:443 https://*.youtube.com:443")) + 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") end current_page = env.request.path |
