Closed slingamn closed 1 year ago
This is #2037 (an optimization) plus a correctness issue that should get a changelog entry.
As a follow-up to #2039 I might consider doing an additional utf8.Valid check on all outgoing websocket messages. It's cheap, doesn't allocate, and provides defense in depth against issues like these.
utf8.Valid
This is #2037 (an optimization) plus a correctness issue that should get a changelog entry.