Try to not escape HTML in timeline response

This commit is contained in:
Peter Stuifzand 2018-07-28 13:42:32 +02:00
parent 67fd816e3f
commit 55ef797f68

View File

@ -72,6 +72,7 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
jw := json.NewEncoder(w) jw := json.NewEncoder(w)
w.Header().Add("Content-Type", "application/json") w.Header().Add("Content-Type", "application/json")
jw.SetIndent("", " ") jw.SetIndent("", " ")
jw.SetEscapeHTML(false)
err = jw.Encode(timeline) err = jw.Encode(timeline)
if err != nil { if err != nil {
http.Error(w, err.Error(), 500) http.Error(w, err.Error(), 500)