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 ERR_HTTP2_HEADER_SINGLE_VALUE error #494

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

divdavem
Copy link
Member

@divdavem divdavem commented Nov 27, 2024

This PR fixes the following issue: if http 2 is enabled in kassette, and if the remote server, speaking only http 1, returns multiple values for a header that, according to http 2, is only allowed a single value (such as x-content-type-options), the ERR_HTTP2_HEADER_SINGLE_VALUE error was thrown because kassette was trying to keep all header values when replying to the browser with http 2.
The fix prevents the error by only keeping the first value in this case.

@divdavem divdavem force-pushed the http2HeaderSingleValue branch from f7ee615 to ecc82c0 Compare November 27, 2024 15:56
@divdavem divdavem force-pushed the http2HeaderSingleValue branch from ecc82c0 to c365126 Compare November 27, 2024 16:03
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.68%. Comparing base (3e8a9a4) to head (c365126).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #494      +/-   ##
==========================================
+ Coverage   91.64%   91.68%   +0.03%     
==========================================
  Files          36       36              
  Lines        1209     1214       +5     
  Branches      273      274       +1     
==========================================
+ Hits         1108     1113       +5     
  Misses         50       50              
  Partials       51       51              
Flag Coverage Δ
e2e 79.65% <100.00%> (+0.08%) ⬆️
ut 60.29% <57.14%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link

@fbasso fbasso left a comment

Choose a reason for hiding this comment

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

Everything is fine for me, thanks @divdavem

@divdavem
Copy link
Member Author

@fbasso Thank you for your review!

@divdavem divdavem merged commit e09b37c into AmadeusITGroup:master Nov 28, 2024
4 checks passed
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.

2 participants