From e9c725c90e3e8e9b04d17ce5e9af6bf5ec341403 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 cd8d99ce5aef..22910f1f9311 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