mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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) => {
|
||||
if (configObject.simple === true && error.response) {
|
||||
if (configObject.simple === false && error.response) {
|
||||
if (configObject.resolveWithFullResponse) {
|
||||
resolve({
|
||||
body: error.response.data,
|
||||
headers: error.response.headers,
|
||||
statusCode: error.response.status,
|
||||
statusMessage: error.response.statusText,
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (configObject.simple === false && error.response) {
|
||||
} else {
|
||||
resolve(error.response.data);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user