Skip to content

Commit

Permalink
Issue #6696 - change method name to WebSocketNegotiation.upgrade()
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
  • Loading branch information
lachlan-roberts committed Sep 7, 2021
1 parent d41a297 commit 2aa966a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -54,9 +54,9 @@ public Request getBaseRequest()
return baseRequest;
}

public void setBaseRequest(Request baseRequest)
public void upgrade()
{
this.baseRequest = baseRequest;
this.baseRequest = null;
}

public HttpServletRequest getRequest()
Expand Down
Expand Up @@ -167,7 +167,7 @@ public boolean upgradeRequest(WebSocketNegotiator negotiator, HttpServletRequest
// Save state from request/response and remove reference to the base request/response.
upgradeRequest.upgrade();
upgradeResponse.upgrade();
negotiation.setBaseRequest(null);
negotiation.upgrade();

if (LOG.isDebugEnabled())
LOG.debug("upgrade connection={} session={} framehandler={}", connection, coreSession, handler);
Expand Down

0 comments on commit 2aa966a

Please sign in to comment.