File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
httpclient5-testing/src/test/java/org/apache/hc/client5/testing/extension Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,14 @@ public void close() throws Exception {
91
91
}
92
92
93
93
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 );
96
98
}
97
- return server .start (httpProcessor , exchangeHandlerDecorator , http1Config );
99
+ server .configure (exchangeHandlerDecorator );
100
+ server .configure (httpProcessor );
101
+ return server .start ();
98
102
}
99
103
100
104
}
Original file line number Diff line number Diff line change @@ -60,7 +60,10 @@ public void shutdown(final CloseMode closeMode) {
60
60
}
61
61
62
62
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 ();
64
67
return new InetSocketAddress (server .getInetAddress (), server .getPort ());
65
68
}
66
69
You can’t perform that action at this time.
0 commit comments