From fb8eec214ce7744b5ca787f2c3b8339b2f54b00f Mon Sep 17 00:00:00 2001 From: Fasoro-Joseph Alexander Date: Fri, 7 Mar 2025 08:30:30 +0100 Subject: [PATCH] fix(http-adapter): add allowAbsoluteUrls to path building (#6810) Co-authored-by: alex-paystack --- lib/adapters/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adapters/http.js b/lib/adapters/http.js index da0a42d..0577bf0 100755 --- a/lib/adapters/http.js +++ b/lib/adapters/http.js @@ -228,7 +228,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) { } // Parse url - const fullPath = buildFullPath(config.baseURL, config.url); + const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls); const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined); const protocol = parsed.protocol || supportedProtocols[0];