Skip to content

fix(header): enable header host to fix mtls for specific case, fix #4034#4879

Open
sibelius wants to merge 1 commit intonodejs:mainfrom
sibelius:fix/header
Open

fix(header): enable header host to fix mtls for specific case, fix #4034#4879
sibelius wants to merge 1 commit intonodejs:mainfrom
sibelius:fix/header

Conversation

@sibelius
Copy link

This relates to...

This issue #4034

Rationale

node-fetch behavior enables to override Host request header, using undici.request also works, but undici.fetch breaks

Changes

when passing Header Host it will go along the request instead of host:port

Features

Bug Fixes

Breaking Changes and Deprecations

Status

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

I don't think we should go against the spec. What does Deno do on this regard?

This is unfortunate :(

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.01%. Comparing base (07276c9) to head (15f1378).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4879      +/-   ##
==========================================
- Coverage   93.01%   93.01%   -0.01%     
==========================================
  Files         112      112              
  Lines       35287    35291       +4     
==========================================
+ Hits        32823    32825       +2     
- Misses       2464     2466       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@KhafraDev KhafraDev left a comment

Choose a reason for hiding this comment

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

I agree with @mcollina, you can use the dispatcher api we provide to handle this https://gist.github.com/KhafraDev/af69d9652e93f4e28e139853c818f46b

@sibelius
Copy link
Author

can you provide an example to keep Host header ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants