allow invalid utf8 characters when marshalizing json responses

This commit is contained in:
Gani Georgiev committed 2026-08-24 14:13:53 +03:00
1 parent 50f5f83ace
commit 756b326bfa
9 files changed
+57 -20

No files matched your search

+2
View File
@@ -50,6 +50,8 @@ func (l *Log) DBExport(app App) (map[string]any, error) {
result["message"] = l.Message
}
// @todo once added in the standard library consider replacing with
// WithByteLimit and WithDepthLimit as suggested in https://github.com/golang/go/issues/56733
if len(l.Data) == 0 {
result["data"] = l.Data
} else {