Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement request: http header customization #340

Open
mdagit opened this issue Sep 19, 2016 · 4 comments
Open

enhancement request: http header customization #340

mdagit opened this issue Sep 19, 2016 · 4 comments

Comments

@mdagit
Copy link

mdagit commented Sep 19, 2016

The Amazon builtin support in S3 for arranging for customized content-type and content-disposition headers is very awkward:
http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html
It would be nice in s3auth to be able to upload some .s3authconfig file in some syntax tbd which allows
for customized http headers to be sent back, such as:

   {rules: [
      {urlmatch: "*.txt", headers: {'Content-Type': 'text/csv', 'Content-Disposition': 'attachment'}}
   ]}

I'm just making that kind of syntax up; Apache .htaccess syntax is horrible, and Varnish VCL is too complicated.

Also, it would be nice if this feature were available even on content buckets that are marked for public readonly access (and no .htpasswd).

-mda

@davvd
Copy link

davvd commented Sep 23, 2016

@yegor256 please take a look at it and dispatch (see par.21)

@yegor256
Copy link
Owner

@mdagit the problem is that AWS doesn't support this feature or that you don't like how it's implemented there?

@mdagit
Copy link
Author

mdagit commented Nov 22, 2016

AWS doesn't have a solution that works for simple links in a web page.
They require custom http headers to be sent as part of the request.

@yegor256
Copy link
Owner

@mdagit I'm sorry this bug is still not fixed. We didn't have enough funds/time to work on the project. However, recently we received some donations from our grateful users and will continue to fix issues and introduce new features. Would be great if you can also donate -- to help us move forward faster. Here is the link: https://www.0crat.com/contrib/C3RP1J1CH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants