jpillora / grunt-aws

A Grunt interface into the Amazon Node.JS SDK
171 stars 44 forks source link

Default charset on text files to UTF-8 #32

Closed nephiw closed 9 years ago

nephiw commented 9 years ago

Previously, you could set the charset, but it applied to all files. So, if you wanted to add UTF-8 to text files, but not to image files, you would have to create a different task for each. This fixes that by using the mime library to apply the default charset to Content-Type based on mime type... but so far this only adds UTF-8 to text files.