From 61de2a5bf745d9ddcf3fe6f0ac212078e89d9721 Mon Sep 17 00:00:00 2001 From: Mark Thomas Date: Thu, 5 Dec 2024 08:44:17 +0000 Subject: [PATCH] Line endings in response body depend on platform --- test/org/apache/catalina/core/TestStandardHostValve.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/org/apache/catalina/core/TestStandardHostValve.java b/test/org/apache/catalina/core/TestStandardHostValve.java index ae7d2e526a87..d2bcf8a3f8c3 100644 --- a/test/org/apache/catalina/core/TestStandardHostValve.java +++ b/test/org/apache/catalina/core/TestStandardHostValve.java @@ -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