Commit d7b2519
committed
fix: detect OAuth requirement from unexpected content-type responses
Some MCP servers (e.g., Atlassian) return text/plain error responses
instead of HTTP 401 when unauthenticated. Add "unexpected content type"
to OAuth detection heuristics so these are correctly routed to the
OAuth flow rather than surfaced as generic connection errors.
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>1 parent bec7699 commit d7b2519
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
845 | 846 | | |
846 | 847 | | |
847 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
848 | 856 | | |
849 | 857 | | |
850 | 858 | | |
| |||
0 commit comments