Commit fc25a90
committed
ae.net.http.websocket: Make WebSocket accept() validation errors explicit
Split the WebSocket request validation enforce into multiple checks with
specific error messages:
- Method must be GET
- HTTP version must be at least 1.1
- Upgrade header must be "websocket"
- Connection header must contain "Upgrade" token
- Sec-WebSocket-Key header must be present
- Sec-WebSocket-Version header must be exactly "13"1 parent f6524dd commit fc25a90
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
495 | 492 | | |
496 | 493 | | |
497 | 494 | | |
| |||
0 commit comments