fix build issues
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
d69a1f0f58
commit
3068b4c8ae
|
@ -408,9 +408,10 @@ public class HttpChannelOverHttp extends HttpChannel implements HttpParser.Reque
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void checkAndPrepareUpgrade()
|
||||
protected boolean checkAndPrepareUpgrade()
|
||||
{
|
||||
// TODO: move the code from HttpConnection.upgrade() here?
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,11 +41,11 @@ public class HandshakerSelector implements Handshaker
|
|||
String method = request.getMethod();
|
||||
HttpVersion httpVersion = baseRequest.getHttpVersion();
|
||||
|
||||
if (HttpMethod.GET.equals(method) && HttpVersion.HTTP_1_1.equals(httpVersion))
|
||||
if (HttpMethod.GET.is(method) && HttpVersion.HTTP_1_1.equals(httpVersion))
|
||||
{
|
||||
return rfc6455.upgradeRequest(negotiator, request, response, defaultCustomizer);
|
||||
}
|
||||
else if (HttpMethod.CONNECT.equals(method) && HttpVersion.HTTP_2.equals(httpVersion))
|
||||
else if (HttpMethod.CONNECT.is(method) && HttpVersion.HTTP_2.equals(httpVersion))
|
||||
{
|
||||
return rfc8441.upgradeRequest(negotiator, request, response, defaultCustomizer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue