Commit cda12b9
committed
test: add failure case tests for JSON response Accept header validation
Add tests to verify that JSON-only servers properly reject requests with:
- Missing Accept header (returns 406)
- Incorrect Accept header like text/event-stream only (returns 406)
These tests address the validation failure cases requested in the PR review
to ensure proper error handling for JSON-only server configurations.1 parent f9bf124 commit cda12b9
File tree
1 file changed
+30
-0
lines changed1 file changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
711 | 741 | | |
712 | 742 | | |
713 | 743 | | |
| |||
0 commit comments