We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53a31a6 commit d0d5a13Copy full SHA for d0d5a13
1 file changed
contentstack/config.py
@@ -66,6 +66,9 @@ def region(self, region=ContentstackRegion.US):
66
"""
67
68
if region is not None and isinstance(region, ContentstackRegion):
69
+ if region != ContentstackRegion.US:
70
+ if self.default["host"] == 'cdn.contentstack.io':
71
+ self.default["host"] = 'cdn.contentstack.com'
72
self.default['region'] = region
73
74
@property
@@ -156,4 +159,4 @@ def __get_url(self):
156
159
if self.default["host"] == 'cdn.contentstack.io':
157
160
self.default["host"] = 'cdn.contentstack.com'
158
161
host = '{}-{}'.format(region, self.default["host"])
- return "{0}://{1}/{2}".format(self.default["protocol"], host, self.default["version"])
162
+ return "{0}://{1}/{2}".format(self.default["protocol"], host, self.default["version"])
0 commit comments