-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
lib/netext/httpext: add support decompression of stacked compressed response #1125
Conversation
b112b7f
to
b9487b5
Compare
Codecov Report
@@ Coverage Diff @@
## master #1125 +/- ##
==========================================
+ Coverage 73.37% 73.39% +0.02%
==========================================
Files 141 142 +1
Lines 10305 10323 +18
==========================================
+ Hits 7561 7577 +16
- Misses 2302 2303 +1
- Partials 442 443 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice work! Just left a minor suggestion.
b9487b5
to
2cff513
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems okay, but there are a couple of things that I would prefer if are done differently:
- the
if !assert
.. is IMO an antipattern scattered everywhere in k6 that I remove when I see it and would prefer if we don't add it back ;) - the reversing of the
contentEncodings
could be done either in a way that is more easy to understand what happens if not faster (as speed in this case is probably not important) or you can just walk it with a real for backwards which seems to me like the even better solution ;)
2cff513
to
fe9bf76
Compare
fe9bf76
to
ee081f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
k6 supports compression of request bodies with multiple layered algorithms but does not handle decompression body in the same manner. This PR adds support for decompression response body with multiple layered algorithms in the same manner.
Close #1108