Skip to content

Commit

Permalink
shut off default json html escape
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleSanderson authored Nov 24, 2024
1 parent 2efc946 commit 5e01f09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,8 @@ func handleAutobrrFilterUpdate(w http.ResponseWriter, r *http.Request) {
body := &bytes.Buffer{}
{
enc := json.NewEncoder(body)
enc.SetEscapeHTML(false)

if err := enc.Encode(submit); err != nil {
http.Error(w, fmt.Sprintf("Unable to marshall qbittorrent data: %q\n", err), 465)
return
Expand Down

0 comments on commit 5e01f09

Please sign in to comment.