We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44bf65a commit 427c41dCopy full SHA for 427c41d
lib/region_config.js
@@ -64,11 +64,18 @@ function configureEndpoint(service) {
64
65
// signature version
66
if (!config.signatureVersion) {
67
- config.signatureVersion = (service.api && service.api.signatureVersion) || 'v4';
+ // Note: config is a global object and should not be mutated here.
68
+ // However, we are retaining this line for backwards compatibility.
69
+ // The non-v4 signatureVersion will be set in a copied object below.
70
+ config.signatureVersion = 'v4';
71
}
72
73
// merge config
- applyConfig(service, config);
74
+ applyConfig(service, Object.assign(
75
+ {},
76
+ config,
77
+ { signatureVersion: (service.api && service.api.signatureVersion) || 'v4' }
78
+ ));
79
return;
80
81
0 commit comments