Comparing version 0.8.0 to 0.8.1
@@ -116,3 +116,3 @@ | ||
, options.contentType | ||
, options.date.toUTCString() | ||
, options.date instanceof Date ? options.date.toUTCString() : options.date | ||
, headers + options.resource | ||
@@ -168,5 +168,10 @@ ].join('\n'); | ||
var field = fields[i] | ||
, val = headers[field] | ||
, field = field.toLowerCase(); | ||
if (0 !== field.indexOf('x-amz')) continue; | ||
, val = headers[field]; | ||
field = field.toLowerCase(); | ||
if (field.indexOf('x-amz') !== 0 || field === 'x-amz-date') { | ||
continue; | ||
} | ||
buf.push(field + ':' + val); | ||
@@ -173,0 +178,0 @@ } |
@@ -270,3 +270,3 @@ /*! | ||
Client.prototype.request = function(method, filename, headers){ | ||
var options = { hostname: this.endpoint, agent: this.agent } | ||
var options = { hostname: this.host, agent: this.agent } | ||
, date = new Date | ||
@@ -277,6 +277,6 @@ , headers = headers || {} | ||
// Default headers | ||
utils.merge(headers, { | ||
Date: date.toUTCString() | ||
, Host: this.host | ||
}); | ||
headers.Date = date.toUTCString() | ||
if (this.style === 'virtualHosted') { | ||
headers.Host = this.host; | ||
} | ||
@@ -283,0 +283,0 @@ if ('undefined' != typeof this.token) |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"author": "TJ Holowaychuk <tj@learnboost.com>", | ||
@@ -12,0 +12,0 @@ "contributors": [ |
@@ -321,5 +321,6 @@ # knox | ||
By default, knox uses the "virtual hosted style" URLs for accessing S3, e.g. | ||
`bucket.s3.amazonaws.com`. If you pass in `"path"` as the `style` option, you | ||
can make knox use "path style" URLs, e.g. `s3.amazonaws.com/bucket`. There are | ||
By default, knox tries to use the "virtual hosted style" URLs for accessing S3, | ||
e.g. `bucket.s3.amazonaws.com`. If you pass in `"path"` as the `style` option, | ||
or pass in a `bucket` value that cannot be used with virtual hosted style URLs, | ||
knox will use "path style" URLs, e.g. `s3.amazonaws.com/bucket`. There are | ||
tradeoffs you should be aware of: | ||
@@ -396,3 +397,9 @@ | ||
### Listing and Copying Large Buckets | ||
[@goodeggs][] created [knox-copy][] to easily copy and stream keys of buckets beyond Amazon's 1000 key page size limit. | ||
[@goodeggs]: https://github.com/goodeggs | ||
[knox-copy]: https://npmjs.org/package/knox-copy | ||
## Running Tests | ||
@@ -399,0 +406,0 @@ |
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
42886
1010
424