Skip to content

Commit

Permalink
fix(HTTP Request Tool Node): Remove default user agent header (#10971)
Browse files Browse the repository at this point in the history
  • Loading branch information
burivuhster authored Sep 26, 2024
1 parent efc5d85 commit 5a99e93
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ export class ToolHttpRequest implements INodeType {
method: this.getNodeParameter('method', itemIndex, 'GET') as IHttpRequestMethods,
url: this.getNodeParameter('url', itemIndex) as string,
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: {},
};

Expand Down

0 comments on commit 5a99e93

Please sign in to comment.