Commit 2ec0e61
committed
fix(ai-openrouter): match SSE content-type case-insensitively
Content-Type header values are case-insensitive per RFC 9110.
OpenRouter today serves lowercase `text/event-stream` but a proxy on
the path could return a different casing, which would make cost
capture silently skip a real SSE response. Lowercase the header before
the substring match.
Picked up in CodeRabbit review of TanStack#469.1 parent 77b70d3 commit 2ec0e61
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| |||
0 commit comments