You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/transports/polling.ts
+2-4Lines changed: 2 additions & 4 deletions
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)
0 commit comments