mirror of
https://github.com/iv-org/invidious
synced 2024-11-28 05:53:28 +01:00
Add fix for spaces in content-disposition
This commit is contained in:
parent
7e6cf7b979
commit
955b36913f
@ -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|
|
||||
|
Loading…
Reference in New Issue
Block a user