Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when using sessionless requests over WebSockets.
When disabling sessions for individual requests, it's done by deleting the session field from the request. (See balderdashy#841). Unfortunately, the REST-over-WebSocket code assumed that the session was always there. This patch checks for the existence of req.session before calling req.session.save.
- Loading branch information