diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-07-19 19:27:05 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-07-19 19:27:05 -0700 |
commit | 9f6533ece90c6b528dd0af6f1b6dec4a7fa2fa3b (patch) | |
tree | 59349657a1d5a700abab38332d4e7240533ab4d3 /ui/entry_scraper.go | |
parent | a291d8a38b40569fdd1f00125ca0b29e4b9264f2 (diff) |
Compress JSON, CSS and Javascript responses
Diffstat (limited to 'ui/entry_scraper.go')
-rw-r--r-- | ui/entry_scraper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/entry_scraper.go b/ui/entry_scraper.go index 75e4040..aea9b20 100644 --- a/ui/entry_scraper.go +++ b/ui/entry_scraper.go @@ -49,5 +49,5 @@ func (c *Controller) FetchContent(w http.ResponseWriter, r *http.Request) { entry.Content = sanitizer.Sanitize(entry.URL, content) c.store.UpdateEntryContent(entry) - json.Created(w, map[string]string{"content": entry.Content}) + json.OK(w, r, map[string]string{"content": entry.Content}) } |