Skip to content

Commit 0ccd524

Browse files
committed
[java]: fix decoding of line endings
1 parent 419484d commit 0ccd524

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +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-
}
117111

118112
if (response.getStatus() != null && response.getState() == null) {
119113
response.setState(errorCodes.toState(response.getStatus()));

0 commit comments

Comments
 (0)