gitlab-org--gitlab-foss/spec/lib/api
Stan Hu 41b51c0656 Encode Content-Disposition filenames
Users downloading non-ASCII attachments would see garbled characters.
When used with object storage, AWS S3 would return an InvalidArgument
error: Header value cannot be represented using ISO-8859-1.

Per RFC 5987 and RFC 6266, Content-Disposition should be encoded
properly. This commit takes the Rails 6 implementation of
ActiveSuppport::Http::ContentDisposition
(https://github.com/rails/rails/pull/33829) and ports it here.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/47673
2019-02-04 23:12:44 -08:00
..
helpers [API] Omit X-Total{,-Pages} when count > 10k 2019-01-22 18:13:04 +01:00
api_spec.rb Add API::Helpers::Version and expose API root URL 2019-01-03 14:18:05 +01:00
helpers_spec.rb Encode Content-Disposition filenames 2019-02-04 23:12:44 -08:00