From aa389399bc0de162611ef09c6a1e78c5adc5648f Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 15 Jul 2018 20:54:01 -0500 Subject: [PATCH] Add fix for videoplayback requests with trailing slash --- src/invidious.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invidious.cr b/src/invidious.cr index 83a6414b..8805a789 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -997,6 +997,7 @@ get "/videoplayback*" do |env| path = env.request.path if path != "/videoplayback" path = path.lchop("/videoplayback/") + path = path.rchop("/") path = path.split("/") raw_params = {} of String => Array(String)