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 /api/feed.go | |
parent | a291d8a38b40569fdd1f00125ca0b29e4b9264f2 (diff) |
Compress JSON, CSS and Javascript responses
Diffstat (limited to 'api/feed.go')
-rw-r--r-- | api/feed.go | 4 |
1 files changed, 2 insertions, 2 deletions
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. |