2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

fix(core): use strict equality in buildFullPath check (#7252)

Replace loose equality (==) with strict equality (===)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Nitya Jain
2026-04-07 23:18:21 +05:30
committed by GitHub
parent 772a4e54ec
commit f53ebf2198
+1 -1
View File
@@ -15,7 +15,7 @@ import combineURLs from '../helpers/combineURLs.js';
*/
export default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
let isRelativeUrl = !isAbsoluteURL(requestedURL);
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
return combineURLs(baseURL, requestedURL);
}
return requestedURL;