Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Add proper response when handleUpgrade fails (#458)
When the `verify` method fails, the current implementation closes the connection immediately, which is understood by some proxy (such as nginx) as if the server was not available (resulting in "upstream prematurely closed connection while reading response header from upstream" error). That commit make sure a proper response is sent before closing the connection.
- Loading branch information