From 955b36913f01bde65d7ae12004b78ff91ba218f4 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 24 Feb 2019 16:17:04 -0600 Subject: [PATCH] Add fix for spaces in content-disposition --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 9f0f6a3f..913fb5f4 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -4051,7 +4051,7 @@ get "/videoplayback" do |env| env.response.status_code = response.status_code if title = env.params.query["title"]? - env.response.headers["Content-Disposition"] = "attachment; filename=#{title}" + env.response.headers["Content-Disposition"] = "attachment; filename=\"#{title}\"" end response.headers.each do |key, value|