Skip to content

Commit 5a82a2b

Browse files
Delta456harsha509pujagani
authored andcommitted
[java]: fix decoding of line endings (SeleniumHQ#14539)
Co-authored-by: Sri Harsha <[email protected]> Co-authored-by: Puja Jagani <[email protected]>
1 parent e13947c commit 5a82a2b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

java/src/org/openqa/selenium/remote/codec/AbstractHttpResponseCodec.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,6 @@ public Response decode(HttpResponse encodedResponse) {
108108
response.setValue(content);
109109
}
110110

111-
if (response.getValue() instanceof String) {
112-
// We normalise to \n because Java will translate this to \r\n
113-
// if this is suitable on our platform, and if we have \r\n, java will
114-
// turn this into \r\r\n, which would be Bad!
115-
response.setValue(((String) response.getValue()).replace("\r\n", "\n"));
116-
}
117-
118111
if (response.getStatus() != null && response.getState() == null) {
119112
response.setState(errorCodes.toState(response.getStatus()));
120113
} else if (response.getStatus() == null && response.getState() != null) {

0 commit comments

Comments
 (0)