Makes VirtualHostHandler works with HTTP/2
@@ -36,7 +36,7 @@ public class VirtualHostHandlerImpl implements VirtualHostHandler {
@Override
public void handle(RoutingContext ctx) {
- String host = ctx.request().getHeader("host");
+ String host = ctx.request().host();
if (host == null) {
ctx.next();
} else {
