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: ProxyAgent dispatch options receives a header array when using fetch #1363

Merged
merged 3 commits into from Apr 22, 2022
Merged

fix: ProxyAgent dispatch options receives a header array when using fetch #1363

merged 3 commits into from Apr 22, 2022

Conversation

KhafraDev
Copy link
Member

Fixes #1355

types were already correct (I'm guessing this issue has been around for a little bit):

headers?: IncomingHttpHeaders | string[] | null;

lib/proxy-agent.js Outdated Show resolved Hide resolved
docs/api/Dispatcher.md Show resolved Hide resolved
Co-authored-by: Rafael Silva <rafael.nunu@hotmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2022

Codecov Report

Merging #1363 (b171bfc) into main (b6a7262) will increase coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1363      +/-   ##
==========================================
+ Coverage   94.12%   94.25%   +0.12%     
==========================================
  Files          45       45              
  Lines        4204     4211       +7     
==========================================
+ Hits         3957     3969      +12     
+ Misses        247      242       -5     
Impacted Files Coverage Δ
lib/proxy-agent.js 100.00% <100.00%> (ø)
lib/fetch/index.js 80.89% <0.00%> (+0.59%) ⬆️
lib/fetch/response.js 88.00% <0.00%> (+1.33%) ⬆️

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 b6a7262...b171bfc. Read the comment docs.

@KhafraDev

This comment was marked as outdated.

@ronag
Copy link
Member

ronag commented Apr 22, 2022

Lint failure

@KhafraDev
Copy link
Member Author

KhafraDev commented Apr 22, 2022

@ronag that is from 950a78c

/home/runner/work/undici/undici/index-fetch.js
  15:1  error  Too many blank lines at the end of file. Max of 0 allowed

@ronag ronag merged commit eb59fc9 into nodejs:main Apr 22, 2022
KhafraDev added a commit to KhafraDev/undici that referenced this pull request Jun 23, 2022
…etch (nodejs#1363)

* fix: don't spread array

* Update lib/proxy-agent.js

Co-authored-by: Rafael Silva <rafael.nunu@hotmail.com>

* test: improve test

Co-authored-by: Rafael Silva <rafael.nunu@hotmail.com>
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
…etch (nodejs#1363)

* fix: don't spread array

* Update lib/proxy-agent.js

Co-authored-by: Rafael Silva <rafael.nunu@hotmail.com>

* test: improve test

Co-authored-by: Rafael Silva <rafael.nunu@hotmail.com>
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
…etch (nodejs#1363)

* fix: don't spread array

* Update lib/proxy-agent.js

Co-authored-by: Rafael Silva <rafael.nunu@hotmail.com>

* test: improve test

Co-authored-by: Rafael Silva <rafael.nunu@hotmail.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.

Fetch garbles headers when used with a proxy global dispatcher
4 participants