This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 61de2a5bf745d9ddcf3fe6f0ac212078e89d9721
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Dec 5 08:44:17 2024 +0000

    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 ae7d2e526a..d2bcf8a3f8 100644
--- a/test/org/apache/catalina/core/TestStandardHostValve.java
+++ b/test/org/apache/catalina/core/TestStandardHostValve.java
@@ -128,7 +128,7 @@ public class TestStandardHostValve extends TomcatBaseTest {
             // 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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to