Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(HTTP Request Tool Node): Remove default user agent header #10971

Conversation

burivuhster
Copy link
Contributor

Summary

As HTTP Tool node uses newer helper.httpRequest and normal HTTP node uses deprecated helper.request, they have slightly different in handling user agent header.
This PR adds a workaround so that HTTP Tool node behaves the same way as normal HTTP tool (not sending a default n8n user agent header).

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/AI-354/change-default-user-agent-in-http-tool-to-the-default-http-node-user

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@burivuhster burivuhster changed the title fix(HTTP Tool Node): Remove default user agent header fix(HTTP Request Tool Node): Remove default user agent header Sep 25, 2024
@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Sep 25, 2024
Copy link

cypress bot commented Sep 25, 2024

n8n    Run #7056

Run Properties:  status check passed Passed #7056  •  git commit 2cb141e4ad: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 burivuhster 🗃️ e2e/*
Project n8n
Branch Review ai-354-http-tool-does-not-work-on-all-sites-that-do-work-with
Run status status check passed Passed #7056
Run duration 04m 46s
Commit git commit 2cb141e4ad: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 burivuhster 🗃️ e2e/*
Committer Eugene Molodkin
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 430
View all changes introduced in this branch ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@burivuhster burivuhster merged commit 5a99e93 into master Sep 26, 2024
35 checks passed
@burivuhster burivuhster deleted the ai-354-http-tool-does-not-work-on-all-sites-that-do-work-with branch September 26, 2024 11:15
This was referenced Oct 2, 2024
@janober
Copy link
Member

janober commented Oct 2, 2024

Got released with n8n@1.62.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants