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

Add support for HTTP2 pseudo headers #55

Merged
merged 3 commits into from Dec 5, 2023
Merged

Conversation

pcattori
Copy link

@pcattori pcattori commented Dec 5, 2023

No description provided.

Node internally uses undici instead anyway
Copy link

changeset-bot bot commented Dec 5, 2023

🦋 Changeset detected

Latest commit: a423019

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@remix-run/web-fetch Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

which begin with `:` e.g. `:authority`, `:method`, etc.
@brophdawg11
Copy link

Want to to add a unit test alongside the should reject illegal header test (packages/fetch/test/headers.js`) file to assert these are ok?


const validateHeaderName = typeof validators.validateHeaderName === 'function' ?
validators.validateHeaderName :
Copy link

Choose a reason for hiding this comment

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

Do we know exactly what this used to do? Any chance we start inadvertently rejecting headers in the wild that use to be allowed by this?

Copy link
Author

@pcattori pcattori Dec 5, 2023

Choose a reason for hiding this comment

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

The http-based validateHeaderName (which is what validators.validateHeaderName is) looks the same as ours. The only difference now is the :

https://github.com/nodejs/node/blob/main/lib/_http_outgoing.js#L664-L668
https://github.com/nodejs/node/blob/main/lib/_http_common.js#L206-L214

@pcattori
Copy link
Author

pcattori commented Dec 5, 2023

@brophdawg11 good callout, just added a test. Fails before this change, passes now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants