mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(HTTP Node): fix instance crashing when batching enabled (#3902)
* 🐛 Fix instance crashing when batching enabled * Add flag parsing for simple mode * 🐛 Fix issue with simple flag * ⚡ improvements * ⚡ Improvements * 🔥 Remove console.log Co-authored-by: Omar Ajoue <krynble@gmail.com>
This commit is contained in:
@@ -479,12 +479,15 @@ async function parseRequestObject(requestObject: IDataObject) {
|
||||
});
|
||||
}
|
||||
|
||||
if (requestObject.simple === false) {
|
||||
axiosConfig.validateStatus = () => true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Missing properties:
|
||||
* encoding (need testing)
|
||||
* gzip (ignored - default already works)
|
||||
* resolveWithFullResponse (implemented elsewhere)
|
||||
* simple (???)
|
||||
*/
|
||||
|
||||
return axiosConfig;
|
||||
@@ -781,6 +784,7 @@ async function httpRequest(
|
||||
) {
|
||||
delete axiosRequest.data;
|
||||
}
|
||||
|
||||
const result = await axios(axiosRequest);
|
||||
if (requestOptions.returnFullResponse) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user