aws-cf-templates icon indicating copy to clipboard operation
aws-cf-templates copied to clipboard

Content-Type of templates not set on S3 bucket

Open michaelwittig opened this issue 5 years ago • 3 comments

See https://github.com/widdix/aws-cf-templates-cli/issues/1 for more information

michaelwittig avatar Sep 13 '18 10:09 michaelwittig

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...

lestephane avatar Sep 13 '18 13:09 lestephane

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

michaelwittig avatar Sep 14 '18 11:09 michaelwittig

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

lestephane avatar Sep 17 '18 08:09 lestephane