Skip to content

Commit

Permalink
Merge pull request #19 from Avanis-GmbH/json-html
Browse files Browse the repository at this point in the history
[UPD] Disabled html escaping.
  • Loading branch information
Valentin-Kaiser authored Dec 20, 2023
2 parents 31c9b94 + 4508d59 commit 73f670d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion com/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*htt
func (c *Client) NewRequest(context ApiContext, method, path string, options map[string]string, body interface{}) (*http.Request, error) {
buf := &bytes.Buffer{}
if body != nil {
err := json.NewEncoder(buf).Encode(body)
encoder := json.NewEncoder(buf)
encoder.SetEscapeHTML(false)
err := encoder.Encode(body)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 73f670d

Please sign in to comment.