fix build issues

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2019-09-12 11:04:05 +10:00
parent d69a1f0f58
commit 3068b4c8ae
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}
/**

View File

@ -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);
}