This commit is contained in:
Stef Walter 2025-06-18 23:06:02 -04:00 committed by GitHub
commit edc6913fd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ func WriteJSON(w http.ResponseWriter, code int, value interface{}) {
w.WriteHeader(code) w.WriteHeader(code)
coder := json.NewEncoder(w) coder := json.NewEncoder(w)
coder.SetEscapeHTML(true) coder.SetEscapeHTML(false)
if err := coder.Encode(value); err != nil { if err := coder.Encode(value); err != nil {
logrus.Errorf("Unable to write json: %q", err) logrus.Errorf("Unable to write json: %q", err)
} }