Skip to content

Commit

Permalink
Merge pull request #7698 from stuartwdouglas/WFLY-4861
Browse files Browse the repository at this point in the history
WFLY-4861 add http2 update listener to support upgrade requests as we…
  • Loading branch information
bstansberry committed Jul 6, 2015
2 parents 444a8d3 + 6d834d8 commit 50fe22f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import io.undertow.server.handlers.ProxyPeerAddressHandler;
import io.undertow.server.handlers.SSLHeaderHandler;
import io.undertow.server.protocol.http.HttpOpenListener;
import io.undertow.server.protocol.http2.Http2UpgradeHandler;
import org.jboss.msc.service.ServiceName;
import org.jboss.msc.service.StartContext;
import org.jboss.msc.service.ValueService;
Expand Down Expand Up @@ -71,6 +72,14 @@ public HttpHandler wrap(final HttpHandler handler) {
return httpUpgradeHandler;
}
});
if(listenerOptions.get(UndertowOptions.ENABLE_HTTP2, false)) {
addWrapperHandler(new HandlerWrapper() {
@Override
public HttpHandler wrap(HttpHandler handler) {
return new Http2UpgradeHandler(handler);
}
});
}
if (certificateForwarding) {
addWrapperHandler(new HandlerWrapper() {
@Override
Expand Down

0 comments on commit 50fe22f

Please sign in to comment.