Skip to content
Permalink
Browse files
Set correct mime type when uploading to S3.
[ci skip]
  • Loading branch information
brixen committed Dec 14, 2015
1 parent cdcec7e commit da1276da7fdcf67cf1401062a8991e37449de62b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -10,7 +10,7 @@ function rbx_s3_upload {
date=$(date +"%a, %d %b %Y %T %z")

acl="x-amz-acl:public-read"
content_type="application/octet-stream"
content_type=$(file --mime-type -b $file)

data="PUT\n\n$content_type\n$date\n$acl\n/$bucket$path$file"
signature=$(echo -en "${data}" |

0 comments on commit da1276d

Please sign in to comment.