File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ export class Polling extends Transport {
75
75
debug ( "request overlap" ) ;
76
76
// assert: this.res, '.req and .res should be (un)set together'
77
77
this . onError ( "overlap from client" ) ;
78
- // TODO for the next major release: use an HTTP 400 status code (https://github.com/socketio/engine.io/issues/650)
79
- res . writeHead ( 500 ) ;
78
+ res . writeHead ( 400 ) ;
80
79
res . end ( ) ;
81
80
return ;
82
81
}
@@ -117,8 +116,7 @@ export class Polling extends Transport {
117
116
if ( this . dataReq ) {
118
117
// assert: this.dataRes, '.dataReq and .dataRes should be (un)set together'
119
118
this . onError ( "data request overlap from client" ) ;
120
- // TODO for the next major release: use an HTTP 400 status code (https://github.com/socketio/engine.io/issues/650)
121
- res . writeHead ( 500 ) ;
119
+ res . writeHead ( 400 ) ;
122
120
res . end ( ) ;
123
121
return ;
124
122
}
You can’t perform that action at this time.
0 commit comments