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(Request): allow passing Headers instance to init.headers #1401

Merged
merged 5 commits into from May 8, 2022

Conversation

KhafraDev
Copy link
Member

Fixes #1400

lib/fetch/request.js Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented May 2, 2022

Codecov Report

Merging #1401 (b4014a7) into main (6069f68) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1401   +/-   ##
=======================================
  Coverage   94.27%   94.27%           
=======================================
  Files          49       49           
  Lines        4248     4248           
=======================================
  Hits         4005     4005           
  Misses        243      243           
Impacted Files Coverage Δ
lib/fetch/request.js 85.65% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6069f68...b4014a7. Read the comment docs.

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.

lgtm

lib/fetch/request.js Outdated Show resolved Hide resolved
@ronag ronag merged commit 55d72ac into nodejs:main May 8, 2022
@KhafraDev KhafraDev deleted the new-request-headers-instance branch May 8, 2022 19:56
lmachens added a commit to playt-net/rolling-rick that referenced this pull request May 9, 2022
Due to an issue in Node.js 18.1.0 with fetch implementation of undici, the request content-type was invalid. See nodejs/undici#1401
This change makes sure to always use stable node-fetch.
KhafraDev added a commit to KhafraDev/undici that referenced this pull request Jun 23, 2022
…1401)

* fix(Request): allow passing Headers instance to init.headers

* fix(Request): remove unnecessary condition

* test: fix node-fetch test failures

* fixup

Co-authored-by: Robert Nagy <ronagy@icloud.com>
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
…1401)

* fix(Request): allow passing Headers instance to init.headers

* fix(Request): remove unnecessary condition

* test: fix node-fetch test failures

* fixup

Co-authored-by: Robert Nagy <ronagy@icloud.com>
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
…1401)

* fix(Request): allow passing Headers instance to init.headers

* fix(Request): remove unnecessary condition

* test: fix node-fetch test failures

* fixup

Co-authored-by: Robert Nagy <ronagy@icloud.com>
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.

Unable to pass a Headers instance to the Request constructor
4 participants