Skip to content

Commit

Permalink
fix s3 metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Baumgart committed Jan 13, 2013
1 parent 993544e commit efeabf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions lib/jsbundle-s3.js
Expand Up @@ -94,11 +94,13 @@ function _s3upload(data, s3Config) {
BucketName: s3Config.bucketName, BucketName: s3Config.bucketName,
ObjectName: s3Config.version + '/' + s3Config.bundleName, ObjectName: s3Config.version + '/' + s3Config.bundleName,
Acl: 'public-read', Acl: 'public-read',
ContentType: 'application/javascript', MetaData: {
ContentEncoding: 'gzip', ContentType: 'application/javascript',
CacheControl: 'max-age=31536000', ContentEncoding: 'gzip',
ContentLength: data.length, CacheControl: 'max-age=31536000'
Body: data },
Body: data,
ContentLength: data.length
}; };


process.stderr.write('Uploading to S3 ... '); process.stderr.write('Uploading to S3 ... ');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"name": "jsbundle", "name": "jsbundle",
"description": "Simple, clean, and automatic bundling of your Node modules and packages for use in the browser.", "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", "keywords": "browser require bundle module package static-analysis",
"version": "0.16.5", "version": "0.16.6",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/proxv/jsbundle.git" "url": "git://github.com/proxv/jsbundle.git"
Expand Down

0 comments on commit efeabf1

Please sign in to comment.