Skip to content

Commit

Permalink
feat(push): Set content type manually when pushing to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorgerhardt committed Aug 5, 2016
1 parent 7316718 commit 8bd803d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/push-to-s3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const AWS = require('aws-sdk')
const fs = require('fs')
const mime = require('mime')
const uuid = require('uuid')

const browserify = require('./browserify')
Expand Down Expand Up @@ -59,6 +60,7 @@ function upload ({
ACL: 'public-read',
Body: body,
Bucket: bucket,
ContentType: mime.lookup(outfile),
Key: outfile
}
})
Expand Down

0 comments on commit 8bd803d

Please sign in to comment.