mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +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
|
@ -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})
|
||||
}
|
||||
|
|
|
@ -28,5 +28,5 @@ func (c *Controller) ToggleBookmark(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
json.OK(w, "OK")
|
||||
json.OK(w, r, "OK")
|
||||
}
|
||||
|
|
|
@ -35,5 +35,5 @@ func (c *Controller) UpdateEntriesStatus(w http.ResponseWriter, r *http.Request)
|
|||
return
|
||||
}
|
||||
|
||||
json.OK(w, "OK")
|
||||
json.OK(w, r, "OK")
|
||||
}
|
||||
|
|
|
@ -50,5 +50,5 @@ func (c *Controller) WebManifest(w http.ResponseWriter, r *http.Request) {
|
|||
},
|
||||
}
|
||||
|
||||
json.OK(w, manifest)
|
||||
json.OK(w, r, manifest)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue