File tree Expand file tree Collapse file tree
httpclient5-testing/src/test/java/org/apache/hc/client5/testing/extension Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,10 +91,14 @@ public void close() throws Exception {
9191 }
9292
9393 public InetSocketAddress start () throws Exception {
94- if (http1Config == null ) {
95- return server .start (httpProcessor , exchangeHandlerDecorator , h2Config );
94+ if (http1Config != null ) {
95+ server .configure (http1Config );
96+ } else {
97+ server .configure (h2Config );
9698 }
97- return server .start (httpProcessor , exchangeHandlerDecorator , http1Config );
99+ server .configure (exchangeHandlerDecorator );
100+ server .configure (httpProcessor );
101+ return server .start ();
98102 }
99103
100104}
Original file line number Diff line number Diff line change @@ -60,7 +60,10 @@ public void shutdown(final CloseMode closeMode) {
6060 }
6161
6262 public InetSocketAddress start () throws IOException {
63- server .start (http1Config , httpProcessor , exchangeHandlerDecorator );
63+ server .configure (http1Config );
64+ server .configure (exchangeHandlerDecorator );
65+ server .configure (httpProcessor );
66+ server .start ();
6467 return new InetSocketAddress (server .getInetAddress (), server .getPort ());
6568 }
6669
You can’t perform that action at this time.
0 commit comments