uniqush / uniqush-push

Uniqush is a free and open source software system which provides a unified push service for server side notification to apps on mobile devices.
http://uniqush.org
Apache License 2.0
1.53k stars 201 forks source link

Use go 1.7's facilities for generating unescaped json #184

Closed TysonAndre closed 6 years ago

TysonAndre commented 6 years ago

https://golang.org/doc/go1.7#encoding_json

The Encoder's new SetEscapeHTML method controls whether the &, <, and > characters in quoted strings should be escaped as \u0026, \u003c, and \u003e, respectively. As in previous releases, the encoder defaults to applying this escaping, to avoid certain problems that can arise when embedding JSON in HTML.

Remove the workaround used when older golang versions didn't have this.