mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Download: update link in video_playback comment
This commit is contained in:
parent
3474744f57
commit
a743d01a10
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ module Invidious::Routes::VideoPlayback
|
||||||
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||||
|
|
||||||
if title
|
if title
|
||||||
# https://blog.fastmail.com/2011/06/24/download-non-english-filenames/
|
# http://web.archive.org/web/20150701003254/https://blog.fastmail.com/2011/06/24/download-non-english-filenames/
|
||||||
filename = URI.encode_www_form(title, space_to_plus: false)
|
filename = URI.encode_www_form(title, space_to_plus: false)
|
||||||
header = "attachment; filename=\"#{filename}\"; filename*=UTF-8''#{filename}"
|
header = "attachment; filename=\"#{filename}\"; filename*=UTF-8''#{filename}"
|
||||||
env.response.headers["Content-Disposition"] = header
|
env.response.headers["Content-Disposition"] = header
|
||||||
|
|
Loading…
Reference in a new issue