We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d862ef0 commit d014beaCopy full SHA for d014bea
1 file changed
src/main/java/com/contentstack/sdk/Stack.java
@@ -103,7 +103,10 @@ protected void setConfig(Config config){
103
if (!config.region.name().isEmpty()){
104
String region = config.region.name().toLowerCase();
105
if (!region.equalsIgnoreCase("us")){
106
- URL = region+"-"+URL;
+ if(URL.equalsIgnoreCase("cdn.contentstack.io")) {
107
+ URL=URL.replace("io", "com");
108
+ URL = region + "-" + URL;
109
+ }
110
}
111
112
0 commit comments