diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-20 07:18:42 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-20 07:18:42 +0300 |
| commit | 925ef996f2661f5e5cf57a1cd5a842303578330c (patch) | |
| tree | 6d4810e4393f33ede7d23c63c60a20c1f52a1b16 /player-android | |
| parent | f45737298d9536819c094ab90917db362b28332a (diff) | |
Buffer JSON before writing response in writeJSON (y9)
Previously writeJSON wrote the status header before encoding, so an
encode failure produced a misleading 200 (or other caller status) with
a truncated body. Marshal into a bytes.Buffer first; on error emit 500
with a JSON error envelope instead.
Diffstat (limited to 'player-android')
0 files changed, 0 insertions, 0 deletions
