Commit ee28ff4
v0.2.8: fix 415 on argument-less tRPC mutations
tRPC v11 requires Content-Type: application/json on every mutation,
even ones with no input. Our client skipped the header + body when
input was undefined, so app_update_download / app_update_check /
close_quit / etc. all hit UNSUPPORTED_MEDIA_TYPE before reaching the
procedure. Always send the header and a `{}` body on POST.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d9f5ed2 commit ee28ff4
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
207 | 210 | | |
208 | | - | |
| 211 | + | |
209 | 212 | | |
210 | 213 | | |
211 | 214 | | |
| |||
0 commit comments