Commit 6832394
committed
refactor: consolidate header validation into single method
- Add _validate_request_headers method that combines session and protocol validation
- Replace repeated calls to _validate_session and _validate_protocol_version
- Improves code maintainability and extensibility for future header validations
- No functional changes, all tests passing
This refactoring makes it easier to add new header validations in the future
by having a single entry point for all non-initialization request validations.1 parent 370b993 commit 6832394
1 file changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | | - | |
360 | | - | |
| 358 | + | |
361 | 359 | | |
362 | 360 | | |
363 | 361 | | |
| |||
516 | 514 | | |
517 | 515 | | |
518 | 516 | | |
519 | | - | |
520 | | - | |
521 | | - | |
| 517 | + | |
522 | 518 | | |
523 | 519 | | |
524 | 520 | | |
| |||
599 | 595 | | |
600 | 596 | | |
601 | 597 | | |
602 | | - | |
603 | | - | |
604 | | - | |
| 598 | + | |
605 | 599 | | |
606 | 600 | | |
607 | 601 | | |
| |||
661 | 655 | | |
662 | 656 | | |
663 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
664 | 665 | | |
665 | 666 | | |
666 | 667 | | |
| |||
0 commit comments