mirror of
https://github.com/miniflux/v2.git
synced 2025-08-31 18:31:01 +00:00
Compress HTML responses to Gzip/Deflate if supported by browser
This commit is contained in:
parent
53deb0b8cd
commit
34a3fe426b
40 changed files with 82 additions and 58 deletions
|
@ -64,7 +64,7 @@ func (c *Controller) UpdateFeed(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
if err := feedForm.ValidateModification(); err != nil {
|
||||
view.Set("errorMessage", err.Error())
|
||||
html.OK(w, view.Render("edit_feed"))
|
||||
html.OK(w, r, view.Render("edit_feed"))
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ func (c *Controller) UpdateFeed(w http.ResponseWriter, r *http.Request) {
|
|||
if err != nil {
|
||||
logger.Error("[Controller:EditFeed] %v", err)
|
||||
view.Set("errorMessage", "Unable to update this feed.")
|
||||
html.OK(w, view.Render("edit_feed"))
|
||||
html.OK(w, r, view.Render("edit_feed"))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue