findify / s3mock

Embedded S3 server for easy mocking
MIT License
386 stars 107 forks source link

response-content-disposition header is not respected #179

Open torrlane opened 3 years ago

torrlane commented 3 years ago

When retrieving an object, if the url contains the response-content-disposition query parameter, the response should contain the content-disposition header. This makes it easier to provide urls etc... to download attachments.

e.g: http://127.0.0.1:8001/my.bucket.prefix/LPJNul-wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ?response-content-disposition=attachment%3B%20filename%3D%22LPJNul-wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ%22

https://forums.aws.amazon.com/ann.jspa?annID=884

There are other url query params for customizing the response:

response-content-disposition response-content-type response-expires response-cache-control response-content-encoding