Fix issue with HTTP2 upgrade