diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-07-15 20:54:01 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-07-15 20:54:01 -0500 |
| commit | aa389399bc0de162611ef09c6a1e78c5adc5648f (patch) | |
| tree | 9c0c7b2060b6437536f209357bb3b16f9cc0995a | |
| parent | f05afaf3422ba89de8a86228d360ce8d9aa47a4c (diff) | |
| download | invidious-aa389399bc0de162611ef09c6a1e78c5adc5648f.tar.gz invidious-aa389399bc0de162611ef09c6a1e78c5adc5648f.tar.bz2 invidious-aa389399bc0de162611ef09c6a1e78c5adc5648f.zip | |
Add fix for videoplayback requests with trailing slash
| -rw-r--r-- | src/invidious.cr | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
