@oxyhq/core 3.4.7 → 3.4.8
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/dist/esm/HttpService.js
CHANGED
|
@@ -599,7 +599,9 @@ export class HttpService {
|
|
|
599
599
|
* Build full URL with query params
|
|
600
600
|
*/
|
|
601
601
|
buildURL(url, params) {
|
|
602
|
-
const base =
|
|
602
|
+
const base = /^https?:\/\//i.test(url)
|
|
603
|
+
? url
|
|
604
|
+
: `${this.baseURL.replace(/\/+$/, '')}/${url.replace(/^\/+/, '')}`;
|
|
603
605
|
if (!params || Object.keys(params).length === 0) {
|
|
604
606
|
return base;
|
|
605
607
|
}
|