mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Fixed ignore response code flag to work properly with return full response (#2370)
This commit is contained in:
@@ -438,17 +438,17 @@ async function proxyRequestToAxios(
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
if (configObject.simple === true && error.response) {
|
if (configObject.simple === false && error.response) {
|
||||||
|
if (configObject.resolveWithFullResponse) {
|
||||||
resolve({
|
resolve({
|
||||||
body: error.response.data,
|
body: error.response.data,
|
||||||
headers: error.response.headers,
|
headers: error.response.headers,
|
||||||
statusCode: error.response.status,
|
statusCode: error.response.status,
|
||||||
statusMessage: error.response.statusText,
|
statusMessage: error.response.statusText,
|
||||||
});
|
});
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
if (configObject.simple === false && error.response) {
|
|
||||||
resolve(error.response.data);
|
resolve(error.response.data);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user