This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new e9c725c90e Line endings in response body depend on platform
e9c725c90e is described below
commit e9c725c90e3e8e9b04d17ce5e9af6bf5ec341403
Author: Mark Thomas <[email protected]>
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 cd8d99ce5a..22910f1f93 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: [email protected]
For additional commands, e-mail: [email protected]