summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-08-04 12:24:50 -0500
committerOmar Roth <omarroth@hotmail.com>2018-08-04 12:24:50 -0500
commit3b323dc6b0f474c56e83a38221efddca93ad1744 (patch)
treeb57a709610f6cbcdcc50df72797eac1871eced15 /src
parentd7ed7b90be1dde59323e3b21b1fb6f639384e31b (diff)
downloadinvidious-3b323dc6b0f474c56e83a38221efddca93ad1744.tar.gz
invidious-3b323dc6b0f474c56e83a38221efddca93ad1744.tar.bz2
invidious-3b323dc6b0f474c56e83a38221efddca93ad1744.zip
Exclude api endpoints from compression
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr
index 275f53a1..13a27c78 100644
--- a/src/invidious/helpers.cr
+++ b/src/invidious/helpers.cr
@@ -51,7 +51,7 @@ class Config
end
class FilteredCompressHandler < Kemal::Handler
- exclude ["/videoplayback"]
+ exclude ["/videoplayback", "/api/*"]
def call(env)
return call_next env if exclude_match? env