mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Add useQueryString option to HTTP Request Node (#1279)
This commit is contained in:
@@ -355,6 +355,13 @@ export class HttpRequest implements INodeType {
|
|||||||
default: 10000,
|
default: 10000,
|
||||||
description: 'Time in ms to wait for the server to send response headers (and start the response body) before aborting the request.',
|
description: 'Time in ms to wait for the server to send response headers (and start the response body) before aborting the request.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Use Querystring',
|
||||||
|
name: 'useQueryString',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
description: 'Set this option to true if you need arrays to be serialized as foo=bar&foo=baz instead of the default foo[0]=bar&foo[1]=baz.',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -683,6 +690,10 @@ export class HttpRequest implements INodeType {
|
|||||||
requestOptions.timeout = options.timeout as number;
|
requestOptions.timeout = options.timeout as number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.useQueryString === true) {
|
||||||
|
requestOptions.useQuerystring = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (parametersAreJson === true) {
|
if (parametersAreJson === true) {
|
||||||
// Parameters are defined as JSON
|
// Parameters are defined as JSON
|
||||||
let optionData: OptionData;
|
let optionData: OptionData;
|
||||||
|
|||||||
Reference in New Issue
Block a user