mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Compress JSON, CSS and Javascript responses
This commit is contained in:
parent
a291d8a38b
commit
9f6533ece9
14 changed files with 41 additions and 35 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue