🐛 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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}