-
Notifications
You must be signed in to change notification settings - Fork 570
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: remove headers filtering #1469
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1469 +/- ##
==========================================
+ Coverage 94.55% 94.70% +0.14%
==========================================
Files 49 49
Lines 4276 4246 -30
==========================================
- Hits 4043 4021 -22
+ Misses 233 225 -8
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still concerned about the 2 places where this PR diverges from the spec. However, I'm going on vacation tomorrow and won't have time to dig into it myself. Merge it if you wish but I'd be happy if you could resolve this before merging.
@ronag Enjoy your vacation 😄, you were completely right - something was wrong with how the Everything follows the spec entirely now, and issues in the future should be easier now that I understand entirely what's happening! Going to assume there was a pretty big performance improvement as well from removing the Proxy along with the forbidden header checks! |
* feat: remove headers filtering * add wintercg issue to README * update README * fix(Headers): properly use/set "this's headers" * fix: remove broken guard checks
Should this be available already in a current Node.js version? I don't see a |
Yes, this is bundled in the current node version. If you make an issue or have a minimal reproduction I'd be glad to look into it. |
Ok thank you, I don't know what's the decision if this should work with Node.js native fetch, but it seems Postman and the browser fetch have something like a cookie jar and if they get a If this should work the same with Node.js fetch, I'll make a minimal repro example & issue. |
* feat: remove headers filtering * add wintercg issue to README * update README * fix(Headers): properly use/set "this's headers" * fix: remove broken guard checks
* feat: remove headers filtering * add wintercg issue to README * update README * fix(Headers): properly use/set "this's headers" * fix: remove broken guard checks
Fixes #1463
Fixes #1262
@ronag's checklist here should be completed:
Headers.prototype.getAll
method (deprecated & removed from the spec) that only works withset-cookie
headers.Headers.prototype.raw
method that returns the raw headers.Clearly, following Deno is the best idea and closest to the spec itself. We aren't adding anything in, but simply removing constraints that don't apply to a server environment.