Skip to content

Commit e3eaa9e

Browse files
authored
Merge pull request #462 from contentstack/fix/revert-endpoint-with-regions-file
fix: change lowercase to uppercase
2 parents 7941f83 + 9def05c commit e3eaa9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/contentstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export function client (params = {}) {
182182
let defaultHostName
183183

184184
if (params.region) {
185-
const region = params.region.toLowerCase()
185+
const region = params.region.toUpperCase()
186186
if (!regionHostMap[region]) {
187187
throw new Error(`Invalid region '${params.region}' provided. Allowed regions are: ${Object.keys(regionHostMap).join(', ')}`)
188188
}

0 commit comments

Comments
 (0)