2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

fix(http-adapter): add allowAbsoluteUrls to path building (#6810)

Co-authored-by: alex-paystack <alex@paystack.com>
This commit is contained in:
Fasoro-Joseph Alexander
2025-03-07 08:30:30 +01:00
committed by GitHub
parent 9812045755
commit fb8eec214c
+1 -1
View File
@@ -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];