Skip to content

Commit d9eb309

Browse files
committed
Fix incorrect test
1 parent 1d4fa88 commit d9eb309

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vertx-core/src/test/java/io/vertx/tests/http/Http1xTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2709,10 +2709,10 @@ public void testConnectionCloseHttp_1_0_Close() throws Exception {
27092709
socket.handler(RecordParser.newDelimited("\r\n\r\n", buffer -> {
27102710
if (firstRequest.getAndSet(false)) {
27112711
socket.write("HTTP/1.0 200 OK\r\n" + "Content-Type: text/plain\r\n" + "Content-Length: 4\r\n"
2712-
+ "Connection: keep-alive\r\n" + "\n" + "xxx\n");
2712+
+ "Connection: keep-alive\r\n" + "\r\n" + "xxx\r\n");
27132713
} else {
27142714
socket.write("HTTP/1.0 200 OK\r\n" + "Content-Type: text/plain\r\n" + "Content-Length: 1\r\n"
2715-
+ "\r\n" + "\n");
2715+
+ "\r\n" + "\r\n");
27162716
socket.close();
27172717
}
27182718
}));

0 commit comments

Comments
 (0)