Closed wdscxsj closed 4 years ago
Thanks
@alexandrevicenzi This %
issue is quite worth a new release, I guess? Before the fix, almost all %
characters will result in format errors like %!d(MISSING)
.
You could use it from master, but I'll try to create a new tag/release this week.
Sorry for the delay, the new tag is available.
On line 95 of
sse.go
,fmt.Fprintf
should befmt.Fprint
to properly handle messages containing%
characters.This PR also refactors the message serialization part to save a []byte/string conversion, with a test added.