Support non-ASCII encoded Content-Disposition types
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24919/diffs adds support for Rails sending the right Content-Disposition
header when there are non-ASCII filenames (e.g. テスト.txt
). That example file would render a Content-Disposition of:
attachment; filename="テスト.txt", filename*=UTF-8''%E3%83%86%E3%82%B9%E3%83%88.txt
However, it looks like Workhorse's safeContentDisposition
may be stripping this out and thus rendering any Rails changes useless.
We would need to adapt that function to allow filename*=UTF-8''
.