Skip to content

Commit

Permalink
Line endings in response body depend on platform
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Dec 5, 2024
1 parent 8365b77 commit 61de2a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/org/apache/catalina/core/TestStandardHostValve.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private void doTestErrorPageHandling(int error, String exception, String report)
// Default error status code expected
Assert.assertEquals(500, rc);
}
String[] responseLines = (bc.toString().split("\n"));
String[] responseLines = (bc.toString().split(System.lineSeparator()));
// First line should be the path
Assert.assertEquals(report, responseLines[0]);
// Second line should not be the null message warning
Expand Down

0 comments on commit 61de2a5

Please sign in to comment.