mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +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
|
@ -43,7 +43,7 @@ func (c *Controller) ChooseSubscription(w http.ResponseWriter, r *http.Request)
|
|||
if err := subscriptionForm.Validate(); err != nil {
|
||||
view.Set("form", subscriptionForm)
|
||||
view.Set("errorMessage", err.Error())
|
||||
html.OK(w, view.Render("add_subscription"))
|
||||
html.OK(w, r, view.Render("add_subscription"))
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ func (c *Controller) ChooseSubscription(w http.ResponseWriter, r *http.Request)
|
|||
if err != nil {
|
||||
view.Set("form", subscriptionForm)
|
||||
view.Set("errorMessage", err)
|
||||
html.OK(w, view.Render("add_subscription"))
|
||||
html.OK(w, r, view.Render("add_subscription"))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue