From 9f6533ece90c6b528dd0af6f1b6dec4a7fa2fa3b Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 19 Jul 2018 19:27:05 -0700 Subject: Compress JSON, CSS and Javascript responses --- ui/entry_scraper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/entry_scraper.go') 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}) } -- cgit v1.2.3