mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Addglobal timeout setting for all http requests except for http request node (#1650)
* Added a global timeout setting for all http requests except for http node. The http node explicitly sets a timeout that overrides the default value. This is to prevent behaviors when users were expecting that their quests could take a very long time to execute. * Removed unnecessary typing from code
This commit is contained in:
@@ -690,6 +690,8 @@ export class HttpRequest implements INodeType {
|
||||
}
|
||||
if (options.timeout !== undefined) {
|
||||
requestOptions.timeout = options.timeout as number;
|
||||
} else {
|
||||
requestOptions.timeout = 3600000; // 1 hour
|
||||
}
|
||||
|
||||
if (options.useQueryString === true) {
|
||||
|
||||
Reference in New Issue
Block a user