aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/aws4/aws4.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/aws4/aws4.js')
-rw-r--r--deps/npm/node_modules/aws4/aws4.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/node_modules/aws4/aws4.js b/deps/npm/node_modules/aws4/aws4.js
index 8e73d44b51..124cd7ac46 100644
--- a/deps/npm/node_modules/aws4/aws4.js
+++ b/deps/npm/node_modules/aws4/aws4.js
@@ -57,7 +57,7 @@ function RequestSigner(request, credentials) {
}
RequestSigner.prototype.matchHost = function(host) {
- var match = (host || '').match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com$/)
+ var match = (host || '').match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/)
var hostParts = (match || []).slice(1, 3)
// ES's hostParts are sometimes the other way round, if the value that is expected