Skip to content

Commit a9a085f

Browse files
authored
Merge pull request #449 from contentstack/fix/regions-endpoint-issue
Fix/regions endpoint issue
2 parents 66c860b + 533c2ab commit a9a085f

File tree

3 files changed

+2714
-491
lines changed

3 files changed

+2714
-491
lines changed

lib/contentstack.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ export function client (params = {}) {
164164
let defaultHostName = getRegionEndpoint('na')
165165

166166
if (params.region) {
167-
defaultHostName = getRegionEndpoint(params.region.toLowerCase())
167+
params.region = params.region.toLowerCase()
168+
defaultHostName = getRegionEndpoint(params.region)
168169
}
169170

170171
const defaultParameter = {

0 commit comments

Comments
 (0)