mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add fix for spaces in content-disposition
This commit is contained in:
parent
7e6cf7b979
commit
955b36913f
1 changed files with 1 additions and 1 deletions
|
@ -4051,7 +4051,7 @@ get "/videoplayback" do |env|
|
||||||
env.response.status_code = response.status_code
|
env.response.status_code = response.status_code
|
||||||
|
|
||||||
if title = env.params.query["title"]?
|
if title = env.params.query["title"]?
|
||||||
env.response.headers["Content-Disposition"] = "attachment; filename=#{title}"
|
env.response.headers["Content-Disposition"] = "attachment; filename=\"#{title}\""
|
||||||
end
|
end
|
||||||
|
|
||||||
response.headers.each do |key, value|
|
response.headers.each do |key, value|
|
||||||
|
|
Loading…
Reference in a new issue