-
Notifications
You must be signed in to change notification settings - Fork 623
Netty needs to check for the xgzip encoding #33216
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
base: integration
Are you sure you want to change the base?
Netty needs to check for the xgzip encoding #33216
Conversation
|
#build (view Open Liberty Personal Build - Note: Target locations of links might be accessible only to IBM employees. |
Code analysis and actionsDO NOT DELETE THIS COMMENT.
|
|
This causes the x-gzip tests to fail. |
|
|
||
| private boolean isCompressed(String encoding) { | ||
| return "gzip".equalsIgnoreCase(encoding) || "deflate".equalsIgnoreCase(encoding); | ||
| return "gzip".equalsIgnoreCase(encoding) || "deflate".equalsIgnoreCase(encoding) || "x-gzip".equalsIgnoreCase(encoding); |
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.
Where is this check done in Legacy? Just making sure we're not missing anything else.
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.
Also can we use HttpConstants here which looks to have values for all of these?
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.
To add to Paul's comment, perhaps create an array/hashmap of supported compression algorithms. Loop/look up for a match?
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.
We could turn it into an enum lookup, but this constants class already has them.
Netty didn't check for the x-gzip encoding for the incoming request.