Skip to content

Commit

Permalink
fix(http-adapter): add allowAbsoluteUrls to path building (#6810)
Browse files Browse the repository at this point in the history
Co-authored-by: alex-paystack <[email protected]>
  • Loading branch information
lexcorp16 and alex-paystack authored Mar 7, 2025
1 parent 9812045 commit fb8eec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit fb8eec2

Please sign in to comment.