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

Content-Type of templates not set on S3 bucket #196

Open
michaelwittig opened this issue Sep 13, 2018 · 3 comments
Open

Content-Type of templates not set on S3 bucket #196

michaelwittig opened this issue Sep 13, 2018 · 3 comments

Comments

@michaelwittig
Copy link
Contributor

See widdix/aws-cf-templates-cli#1 for more information

@lestephane
Copy link

How about adding a text/plain mapping for the yaml extension to .mime.types in the home directory of the user performing the s3 sync command? text/plain is the lowest denominator...

@michaelwittig
Copy link
Contributor Author

Can you share the resource that .mime.types files are considered? I can not find this anywhere in the python source code https://github.com/python/cpython/blob/master/Lib/mimetypes.py

@lestephane
Copy link

Hmm i found it in /etc/mimetypes

#  Users can add their own types if they wish by creating a ".mime.types"
#  file in their home directory.  Definitions included there will take
#  precedence over those listed here.

but it doesn't look like the mimetypes module reads from .mime.types

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

No branches or pull requests

2 participants