mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(HTTP Request Tool Node): Remove default user agent header (#10971)
This commit is contained in:
parent
efc5d859eb
commit
5a99e93f8d
|
@ -275,7 +275,11 @@ export class ToolHttpRequest implements INodeType {
|
||||||
method: this.getNodeParameter('method', itemIndex, 'GET') as IHttpRequestMethods,
|
method: this.getNodeParameter('method', itemIndex, 'GET') as IHttpRequestMethods,
|
||||||
url: this.getNodeParameter('url', itemIndex) as string,
|
url: this.getNodeParameter('url', itemIndex) as string,
|
||||||
qs: {},
|
qs: {},
|
||||||
headers: {},
|
headers: {
|
||||||
|
// FIXME: This is a workaround to prevent the node from sending a default User-Agent (`n8n`) when the header is not set.
|
||||||
|
// Needs to be replaced with a proper fix after NODE-1777 is resolved
|
||||||
|
'User-Agent': undefined,
|
||||||
|
},
|
||||||
body: {},
|
body: {},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue