mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-13 19:10:58 +00:00
a0180da9b6
Clients cannot tell a refused non-UTF8 request from a dropped connection, unlike malformed JSON which gets an explicit error reply. Make the TCP control servers reply with an error for non-UTF8 lines, closing before auth and continuing after auth like bad JSON. Test: non_utf8_line_before_auth_gets_refusal_reply failed before the change and passes after. Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com> Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>