Commit 970a034
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 0552898 commit 970a034
1 file changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | | - | |
390 | | - | |
| 388 | + | |
391 | 389 | | |
392 | 390 | | |
393 | 391 | | |
| |||
562 | 560 | | |
563 | 561 | | |
564 | 562 | | |
565 | | - | |
566 | | - | |
567 | | - | |
| 563 | + | |
568 | 564 | | |
569 | 565 | | |
570 | 566 | | |
| |||
649 | 645 | | |
650 | 646 | | |
651 | 647 | | |
652 | | - | |
653 | | - | |
654 | | - | |
| 648 | + | |
655 | 649 | | |
656 | 650 | | |
657 | 651 | | |
| |||
711 | 705 | | |
712 | 706 | | |
713 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
714 | 715 | | |
715 | 716 | | |
716 | 717 | | |
| |||
0 commit comments