From bd0aaa343b69d65607a34d2a82bae2da493d6cba Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 4 Mar 2020 15:36:39 -0500 Subject: [PATCH] Prevent storyboards from hanging --- src/invidious.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invidious.cr b/src/invidious.cr index 0a10027b..a066407f 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -5714,6 +5714,7 @@ get "/sb/:id/:storyboard/:index" do |env| end end + env.response.headers["Connection"] = "close" env.response.headers["Access-Control-Allow-Origin"] = "*" if response.status_code >= 300