Skip to content

Commit 0dd48b4

Browse files
committed
case insensitive
1 parent 6a4baa9 commit 0dd48b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/api_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var ApiClient = function (settings) {
1313
* Region validation
1414
* @return {Error|null}
1515
*/
16-
const region = settings.region || "us";
16+
const region = (settings.region || "us").toLowerCase();
1717
if (!["us", "eu"].includes(region)) {
1818
throw new Error("Region is invalid.");
1919
}

lib/api_client_v2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var ApiClient = function (settings) {
2222
logger = require("./logger")(settings.logFile);
2323
}
2424

25-
const region = settings.region || "us";
25+
const region = (settings.region || "us").toLowerCase();
2626

2727
/**
2828
* Region validation

0 commit comments

Comments
 (0)