Add fix for spaces in content-disposition

This commit is contained in:
Omar Roth 2019-02-24 16:17:04 -06:00
parent 7e6cf7b979
commit 955b36913f

View File

@ -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|