This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 7.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/7.0.x by this push: new c833d89 Fix line-endings c833d89 is described below commit c833d8928f5a09e2eee19ea6b71ed72442abb3bc Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Mar 31 22:14:23 2020 +0100 Fix line-endings --- test/org/apache/tomcat/util/net/TestSsl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/org/apache/tomcat/util/net/TestSsl.java b/test/org/apache/tomcat/util/net/TestSsl.java index d43da52..61578a2 100644 --- a/test/org/apache/tomcat/util/net/TestSsl.java +++ b/test/org/apache/tomcat/util/net/TestSsl.java @@ -116,7 +116,7 @@ public class TestSsl extends TomcatBaseTest { }); OutputStream os = socket.getOutputStream(); - os.write("GET /examples/servlets/servlet/HelloWorldExample HTTP/1.0\n".getBytes()); + os.write("GET /examples/servlets/servlet/HelloWorldExample HTTP/1.0\r\n".getBytes()); os.flush(); @@ -130,7 +130,7 @@ public class TestSsl extends TomcatBaseTest { os = socket.getOutputStream(); try { - os.write("Host: localhost\n\n".getBytes()); + os.write("Host: localhost\r\n\r\n".getBytes()); } catch (IOException ex) { ex.printStackTrace(); Assert.fail("Re-negotiation failed"); @@ -175,13 +175,13 @@ public class TestSsl extends TomcatBaseTest { OutputStream os = socket.getOutputStream(); - os.write("GET /examples/servlets/servlet/HelloWorldExample HTTP/1.1\n".getBytes()); + os.write("GET /examples/servlets/servlet/HelloWorldExample HTTP/1.1\r\n".getBytes()); os.flush(); socket.startHandshake(); try { - os.write("Host: localhost\n\n".getBytes()); + os.write("Host: localhost\r\n\r\n".getBytes()); } catch (IOException ex) { ex.printStackTrace(); Assert.fail("Re-negotiation failed"); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org