voxxit / s3-static-site

Using Ruby and Capistrano, build and deploy a static website to Amazon S3
MIT License
22 stars 47 forks source link

Make the upload specify Content-Type #5

Closed inkblot closed 12 years ago

inkblot commented 12 years ago

AWS::S3::S3Object does not try to guess an object's Content-Type when uploading a file, and missing Content-Type headers can cause browsing issues. Use MIME::Types to set the header based on file extension.