gd-sprest 9.1.0 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/rest.js +1 -1
- package/build/utils/targetInfo.js +5 -0
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
package/build/rest.js
CHANGED
|
@@ -36,6 +36,11 @@ var TargetInfo = /** @class */ (function () {
|
|
|
36
36
|
this.props.url || "",
|
|
37
37
|
this.props.endpoint
|
|
38
38
|
].join('/').replace(/\/\//g, '/').replace(/\/$/, '');
|
|
39
|
+
// Fix the url from above, it will remove a '/' from the beginning
|
|
40
|
+
if (this.requestUrl.indexOf("https://") != this.requestUrl.indexOf("https:/")) {
|
|
41
|
+
// Fix the beginning of the url
|
|
42
|
+
this.requestUrl = this.requestUrl.replace("https:/", "https://");
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
else {
|