mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Make sure to conserve the error on Request#onError
This commit is contained in:
@@ -228,8 +228,8 @@ Request.prototype.onData = function (data) {
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Request.prototype.onError = function () {
|
||||
this.emit('error');
|
||||
Request.prototype.onError = function (err) {
|
||||
this.emit('error', err);
|
||||
this.cleanup();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user