Commit 8750356
committed
fix: check the type of the initial packet
Before this fix, the client could mark the polling transport as open
even though the handshake packet was not received properly (for
example, after a parsing error).
This could lead to writes (POST requests) without "sid" query param,
which failed with:
```
{"code":2,"message":"Bad handshake method"}
```
Related:
- #636
- socketio/socket.io-client#1390
Cherry-picked from master: 1c8cba81 parent 0b254ce commit 8750356
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments