We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eab5e0 commit be8f0f1Copy full SHA for be8f0f1
src/test/java/io/vertx/core/http/Http1xTest.java
@@ -2614,6 +2614,21 @@ public void testServerInvalidHttpMessage() throws Exception {
2614
await();
2615
}
2616
2617
+ @Test
2618
+ public void testClientInvalidHttpMessage() throws Exception {
2619
+ server.requestHandler(req -> {
2620
+ fail();
2621
+ });
2622
+ startServer(testAddress);
2623
+ client.request(new RequestOptions(requestOptions).setURI("/a\rb"))
2624
+ .compose(HttpClientRequest::send)
2625
+ .onFailure(err -> {
2626
+ assertEquals(IllegalArgumentException.class, err.getClass());
2627
+ testComplete();
2628
2629
+ await();
2630
+ }
2631
+
2632
@Test
2633
public void testClientMaxInitialLineLengthOption() {
2634
0 commit comments