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

http3: initialize trailer map with empty trailer entries when parsing the header #4656

Merged
merged 2 commits into from
Sep 7, 2024

Conversation

sudorandom
Copy link
Contributor

This should resolve #4654

This RP changes the client logic to prepopulates Response.Trailer using the trailers defined in the "Trailer" header and then removes the trailer header, like net/http does.

This is based off of #4630, so only the last few commits are unique.

Copy link

codecov bot commented Sep 1, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 84.90%. Comparing base (4f48b2c) to head (7d37ded).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
http3/response_writer.go 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4656      +/-   ##
==========================================
+ Coverage   84.88%   84.90%   +0.01%     
==========================================
  Files         150      150              
  Lines       14918    14930      +12     
==========================================
+ Hits        12663    12675      +12     
  Misses       1727     1727              
  Partials      528      528              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

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

LGTM modulo one naming / comment suggestion.

http3/headers.go Outdated Show resolved Hide resolved
@marten-seemann marten-seemann added this to the v0.47 milestone Sep 2, 2024
@marten-seemann marten-seemann changed the title Initialize trailer map with empty trailer entries when parsing the header http3: initialize trailer map with empty trailer entries when parsing the header Sep 7, 2024
@marten-seemann
Copy link
Member

@sudorandom I just merged #4630. Can you rebase this PR?

@sudorandom
Copy link
Contributor Author

@sudorandom I just merged #4630. Can you rebase this PR?

Yep, rebased!

@marten-seemann marten-seemann removed this from the v0.47 milestone Sep 7, 2024
@marten-seemann marten-seemann merged commit b92bf0c into quic-go:master Sep 7, 2024
18 of 19 checks passed
@sudorandom sudorandom deleted the trailer-header branch September 9, 2024 09:15
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.

http3: initialize trailer map with empty trailer entries when parsing the header
2 participants