Permalink
Browse files

fix s3 metadata

  • Loading branch information...
1 parent 993544e commit efeabf1738bba9ed30da1e615c4ef4f2c0435e4a @paulbaumgart paulbaumgart committed Jan 13, 2013
Showing with 8 additions and 6 deletions.
  1. +7 −5 lib/jsbundle-s3.js
  2. +1 −1 package.json
View
12 lib/jsbundle-s3.js
@@ -94,11 +94,13 @@ function _s3upload(data, s3Config) {
BucketName: s3Config.bucketName,
ObjectName: s3Config.version + '/' + s3Config.bundleName,
Acl: 'public-read',
- ContentType: 'application/javascript',
- ContentEncoding: 'gzip',
- CacheControl: 'max-age=31536000',
- ContentLength: data.length,
- Body: data
+ MetaData: {
+ ContentType: 'application/javascript',
+ ContentEncoding: 'gzip',
+ CacheControl: 'max-age=31536000'
+ },
+ Body: data,
+ ContentLength: data.length
};
process.stderr.write('Uploading to S3 ... ');
View
2 package.json
@@ -3,7 +3,7 @@
"name": "jsbundle",
"description": "Simple, clean, and automatic bundling of your Node modules and packages for use in the browser.",
"keywords": "browser require bundle module package static-analysis",
- "version": "0.16.5",
+ "version": "0.16.6",
"repository": {
"type": "git",
"url": "git://github.com/proxv/jsbundle.git"

0 comments on commit efeabf1

Please sign in to comment.