summaryrefslogtreecommitdiff
path: root/player-android/android
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-20 07:18:42 +0300
committerPaul Buetow <paul@buetow.org>2026-05-20 07:18:42 +0300
commit925ef996f2661f5e5cf57a1cd5a842303578330c (patch)
tree6d4810e4393f33ede7d23c63c60a20c1f52a1b16 /player-android/android
parentf45737298d9536819c094ab90917db362b28332a (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/android')
0 files changed, 0 insertions, 0 deletions