Comparing version 0.9.0 to 0.9.1
@@ -144,2 +144,4 @@ "use strict"; | ||
options.date + '\n' + | ||
(typeof options.extraHeaders !== 'undefined' ? | ||
exports.canonicalizeHeaders(options.extraHeaders) + '\n' : '') + | ||
(typeof options.token !== 'undefined' ? | ||
@@ -146,0 +148,0 @@ 'x-amz-security-token:' + options.token + '\n' : '') + |
@@ -155,5 +155,3 @@ "use strict"; | ||
sourceFilename = encodeSpecialCharacters(ensureLeadingSlash(sourceFilename)); | ||
headers = utils.merge({ | ||
Expect: '100-continue' | ||
}, headers || {}); | ||
headers = utils.merge({}, headers || {}); | ||
headers['x-amz-copy-source'] = '/' + sourceBucket + sourceFilename; | ||
@@ -328,5 +326,3 @@ headers['Content-Length'] = 0; // to avoid Node's automatic chunking if omitted | ||
Client.prototype.put = function(filename, headers){ | ||
headers = utils.merge({ | ||
Expect: '100-continue' | ||
}, headers || {}); | ||
headers = utils.merge({}, headers || {}); | ||
return this.request('PUT', filename, headers); | ||
@@ -875,2 +871,3 @@ }; | ||
, contentType: options && options.contentType | ||
, extraHeaders : options && options.extraHeaders | ||
, token: this.token | ||
@@ -877,0 +874,0 @@ }); |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"author": "TJ Holowaychuk <tj@learnboost.com>", | ||
@@ -12,0 +12,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44210
1015