Skip to content

Commit 9def05c

Browse files
committed
fix: change lowercase to uppercase
1 parent 0fb6b15 commit 9def05c

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)