From bf91df1d34f117b323035494b7f640066b436ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Maltoni?= Date: Fri, 18 Oct 2024 21:33:55 +0200 Subject: [PATCH] build: upgrade Netty and Reactor-Netty --- .../test/java/org/carapaceproxy/RawClientTest.java | 12 ++++++------ pom.xml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/carapace-server/src/test/java/org/carapaceproxy/RawClientTest.java b/carapace-server/src/test/java/org/carapaceproxy/RawClientTest.java index 435bfa6b7..405bd2c62 100644 --- a/carapace-server/src/test/java/org/carapaceproxy/RawClientTest.java +++ b/carapace-server/src/test/java/org/carapaceproxy/RawClientTest.java @@ -762,7 +762,7 @@ public void testClosedProxy(String scheme) throws Exception { .withHeader("Content-Type", "text/html") .withHeader("Content-Length", "it works !!".length() + "") .withBody("it works !!"))); - String s = client.executeRequest("GET " + scheme + "://yahoo.com/index.html?p1=v1&p2=https://localhost/index.html?p=1 HTTP/1.1 \r\nHost: localhost\r\n\r\n").getBodyString(); + String s = client.executeRequest("GET " + scheme + "://yahoo.com/index.html?p1=v1&p2=https://localhost/index.html?p=1 HTTP/1.1\r\nHost: localhost\r\n\r\n").getBodyString(); assertEquals("it works !!", s); s = client.get("/index.html?p1=v1&p2=https://localhost/index.html?p=1").getBodyString(); assertEquals("it works !!", s); @@ -773,7 +773,7 @@ public void testClosedProxy(String scheme) throws Exception { .withHeader("Content-Type", "text/html") .withHeader("Content-Length", "it works !!".length() + "") .withBody("it works !!"))); - s = client.executeRequest("GET " + scheme + "://yahoo.com/index.html HTTP/1.1 \r\nHost: localhost\r\n\r\n").getBodyString(); + s = client.executeRequest("GET " + scheme + "://yahoo.com/index.html HTTP/1.1\r\nHost: localhost\r\n\r\n").getBodyString(); assertEquals("it works !!", s); s = client.get("/index.html").getBodyString(); assertEquals("it works !!", s); @@ -785,11 +785,11 @@ public void testClosedProxy(String scheme) throws Exception { .withHeader("Content-Type", "text/html") .withHeader("Content-Length", "it works !!".length() + "") .withBody("it works !!"))); - s = client.executeRequest("GET " + scheme + "://yahoo.com/?p1=v1&p2=https://localhost/index.html?p=1 HTTP/1.1 \r\nHost: localhost\r\n\r\n").getBodyString(); + s = client.executeRequest("GET " + scheme + "://yahoo.com/?p1=v1&p2=https://localhost/index.html?p=1 HTTP/1.1\r\nHost: localhost\r\n\r\n").getBodyString(); assertEquals("it works !!", s); s = client.get("/?p1=v1&p2=https://localhost/index.html?p=1").getBodyString(); assertEquals("it works !!", s); - s = client.executeRequest("GET " + scheme + "://yahoo.com?p1=v1&p2=https://localhost/index.html?p=1 HTTP/1.1 \r\nHost: localhost\r\n\r\n").getBodyString(); + s = client.executeRequest("GET " + scheme + "://yahoo.com?p1=v1&p2=https://localhost/index.html?p=1 HTTP/1.1\r\nHost: localhost\r\n\r\n").getBodyString(); assertEquals("it works !!", s); s = client.get("?p1=v1&p2=https://localhost/index.html?p=1").getBodyString(); assertEquals("it works !!", s); @@ -800,11 +800,11 @@ public void testClosedProxy(String scheme) throws Exception { .withHeader("Content-Type", "text/html") .withHeader("Content-Length", "it works !!".length() + "") .withBody("it works !!"))); - s = client.executeRequest("GET " + scheme + "://yahoo.com/ HTTP/1.1 \r\nHost: localhost\r\n\r\n").getBodyString(); + s = client.executeRequest("GET " + scheme + "://yahoo.com/ HTTP/1.1\r\nHost: localhost\r\n\r\n").getBodyString(); assertEquals("it works !!", s); s = client.get("/").getBodyString(); assertEquals("it works !!", s); - s = client.executeRequest("GET " + scheme + "://yahoo.com HTTP/1.1 \r\nHost: localhost\r\n\r\n").getBodyString(); + s = client.executeRequest("GET " + scheme + "://yahoo.com HTTP/1.1\r\nHost: localhost\r\n\r\n").getBodyString(); assertEquals("it works !!", s); } } diff --git a/pom.xml b/pom.xml index 814bc20f1..8327ead38 100644 --- a/pom.xml +++ b/pom.xml @@ -92,8 +92,8 @@ ${toolchain.java.version} 2.4 - 2022.0.7 - 4.1.92.Final + 2023.0.11 + 4.1.114.Final 2.12 1.70 2.17.113