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:
Omar Ajoue
2021-04-17 15:15:33 +02:00
committed by GitHub
parent a7394daa6b
commit 882e2f8e74
2 changed files with 12 additions and 7 deletions

View File

@@ -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) {