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: Remove unnecessary mismatched trailers check #1419

Merged
merged 1 commit into from May 6, 2022

Conversation

pimterry
Copy link
Contributor

@pimterry pimterry commented May 6, 2022

Fixes #1418.

As in that issue, I don't think there's any reason for this, and it doesn't match other implementations, so this removes the error and check entirely, and flips the error tests to check it works correctly.

@pimterry pimterry changed the title Remove unnecessary mismatched trailers check fix: Remove unnecessary mismatched trailers check May 6, 2022
@pimterry
Copy link
Contributor Author

pimterry commented May 6, 2022

(I've now fixed the PR title check by guesswork, but it would be nice if there was a documented format for that https://github.com/nodejs/undici/blob/main/CONTRIBUTING.md)

@codecov-commenter
Copy link

codecov-commenter commented May 6, 2022

Codecov Report

Merging #1419 (5279451) into main (cc65fe5) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1419      +/-   ##
==========================================
- Coverage   94.30%   94.27%   -0.03%     
==========================================
  Files          49       49              
  Lines        4265     4244      -21     
==========================================
- Hits         4022     4001      -21     
  Misses        243      243              
Impacted Files Coverage Δ
lib/core/errors.js 100.00% <ø> (ø)
lib/client.js 97.88% <100.00%> (-0.05%) ⬇️

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 cc65fe5...5279451. 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

@mcollina mcollina merged commit 740053f into nodejs:main May 6, 2022
@pimterry pimterry deleted the remove-trailer-check branch May 6, 2022 16:10
KhafraDev pushed a commit to KhafraDev/undici that referenced this pull request Jun 23, 2022
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
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.

Undici incorrectly rejects responses with trailer header but no matching trailer
4 participants