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

feat(HTTP Request Node): Add option to disable lowercase headers #10154

Merged

Conversation

maspio
Copy link
Contributor

@maspio maspio commented Jul 23, 2024

Summary

The Http Request node is lowercasing all http header names. While http header names should be case-insensitive (see RFC 7230), sometimes n8n users are connecting to services that don't follow standards, e.g. only accepting "Username" header but not "username".

To support these scenarios, lets add an option "Lowercase Headers" that defaults to true

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-1520/http-request-node-option-to-disable-lowercase-headers

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team node/improvement New feature or request labels Jul 23, 2024
@maspio maspio marked this pull request as ready for review July 26, 2024 13:33
Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

Copy link

cypress bot commented Jul 26, 2024

1 flaky test on run #6167 ↗︎

0 386 0 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 maspio 🗃️ e2e/*
Project: n8n Commit: 421c6b7254
Status: Passed Duration: 04:48 💡
Started: Jul 26, 2024 4:14 PM Ended: Jul 26, 2024 4:19 PM
Flakiness  e2e/19-execution.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Execution > connections should be colored differently for pinned data > when executing a node Test Replay Screenshots Video

Review all test suite changes for PR #10154 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@maspio maspio merged commit 5aba69b into master Jul 29, 2024
30 checks passed
@maspio maspio deleted the node-1520-http-request-node-option-to-disable-lowercase-headers branch July 29, 2024 07:32
MiloradFilipovic added a commit that referenced this pull request Jul 29, 2024
* master:
  feat(HTTP Request Node): Add option to disable lowercase headers (#10154)
  feat: Recovery option for jsonParse helper (#10182)
  fix: Better error message when calling data transformation functions on a null value (#10210)
  refactor: Delete mistakenly commited node file (no-changelog) (#10213)
  refactor(editor): Add Infisical deprecation notice (#10191)
  feat(editor): Show new executions as `Queued` in the UI, until they actually start (#10204)
  refactor: Update Langchain modules & add Ollama tools support (#10208)
  feat(Sentiment Analysis Node): Implement Sentiment Analysis node (#10184)
  fix: Add original error message to messages, do not obfuscate if description provided in options (no-changelog) (#10202)
  fix(Google Sheets Node): Fix Google Sheet URL regex (#10195)
  fix(Google Sheets Node): Add column names row if sheet is empty (#10200)
  fix(Google Sheets Node): Do not insert row_number as a new column, do not checkForSchemaChanges in update operation (#10201)
  docs: Update credential urls (no-changelog) (#10193)
  fix(editor): Add back prompt requesting to save unsaved changes (no-changelog) (#10190)
  fix(HTTP Request Node): Resolve max pages expression (#10192)
@github-actions github-actions bot mentioned this pull request Jul 31, 2024
@janober
Copy link
Member

janober commented Jul 31, 2024

Got released with n8n@1.53.0

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 node/improvement New feature or request Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants