Skip to content

Commit

Permalink
Fixed issue in EngineIoSocket related to initial query and headers re…
Browse files Browse the repository at this point in the history
…turning null
  • Loading branch information
trinopoty committed Mar 4, 2021
1 parent 4022c1c commit 0f2b7ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ private void handshakePolling(HttpServletRequest request, HttpServletResponse re
final Transport transport = new Polling(lockObject);
socket.init(transport, request);
transport.onRequest(request, response);
socket.updateInitialHeadersFromActiveTransport();

mClients.put(sid, socket);
socket.once("close", args -> mClients.remove(sid));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ void init(Transport transport, @SuppressWarnings("unused") HttpServletRequest in
onOpen();
}

void updateInitialHeadersFromActiveTransport() {
mInitialQuery = mTransport.getInitialQuery();
mInitialHeaders = mTransport.getInitialHeaders();
}

/**
* Handle an HTTP request.
*
Expand Down

0 comments on commit 0f2b7ca

Please sign in to comment.