diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-02-24 16:17:04 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-02-24 16:19:31 -0600 |
| commit | 955b36913f01bde65d7ae12004b78ff91ba218f4 (patch) | |
| tree | ac5ac93de81d28afdde99ec64699530a30cb1393 /src | |
| parent | 7e6cf7b979783c6813fa43fafafe0b4f5ec6724c (diff) | |
| download | invidious-955b36913f01bde65d7ae12004b78ff91ba218f4.tar.gz invidious-955b36913f01bde65d7ae12004b78ff91ba218f4.tar.bz2 invidious-955b36913f01bde65d7ae12004b78ff91ba218f4.zip | |
Add fix for spaces in content-disposition
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
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| |
