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 --- api/feed.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/feed.go') diff --git a/api/feed.go b/api/feed.go index b7c46ea..b6b6357 100644 --- a/api/feed.go +++ b/api/feed.go @@ -146,7 +146,7 @@ func (c *Controller) GetFeeds(w http.ResponseWriter, r *http.Request) { return } - json.OK(w, feeds) + json.OK(w, r, feeds) } // GetFeed is the API handler to get a feed. @@ -168,7 +168,7 @@ func (c *Controller) GetFeed(w http.ResponseWriter, r *http.Request) { return } - json.OK(w, feed) + json.OK(w, r, feed) } // RemoveFeed is the API handler to remove a feed. -- cgit v1.2.3