-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java]: fix decoding of line endings #14539
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
[java]: fix decoding of line endings #14539
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
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.
Based on the discussion done in the issue, it looks good to me. Thank you @Delta456!
Co-authored-by: Sri Harsha <12621691+harsha509@users.noreply.github.com> Co-authored-by: Puja Jagani <puja.jagani93@gmail.com>
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Fixes #13207
Motivation and Context
It removes old code which changed the line endings from
\r\n
to\n
because it is not needed anymore and also breaks encoding-decoding. @titusfortner said removing this shouldn't impact anything and this code is also useless because other bindings don't do it.Types of changes
Checklist
PR Type
Bug fix
Description
\r\n
to\n
in theAbstractHttpResponseCodec
class, as it was unnecessary and caused encoding-decoding issues.Changes walkthrough 📝
AbstractHttpResponseCodec.java
Remove unnecessary line ending normalization in response decoding
java/src/org/openqa/selenium/remote/codec/AbstractHttpResponseCodec.java
\r\n
to\n
.