🐛 Correctly prepends the baseURL (#2825)

This commit is contained in:
agobrech
2022-02-18 18:07:23 +01:00
committed by GitHub
parent 68c356c17c
commit 1ea57eff5d

View File

@@ -291,6 +291,10 @@ async function parseRequestObject(requestObject: IDataObject) {
axiosConfig.url = requestObject.url?.toString() as string;
}
if (requestObject.baseURL !== undefined) {
axiosConfig.baseURL = requestObject.baseURL?.toString() as string;
}
if (requestObject.method !== undefined) {
axiosConfig.method = requestObject.method as Method;
}