aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/subscription_choose.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-07-06 20:39:28 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-07-06 20:39:28 -0700
commit34a3fe426b33a63f2d8e02d4a70c88f137fa5410 (patch)
tree108ea6897543f2119747da1ef900d55253881e2c /ui/subscription_choose.go
parent53deb0b8cd1899ec325eca93631b3e137bdd3ec3 (diff)
Compress HTML responses to Gzip/Deflate if supported by browser
Diffstat (limited to 'ui/subscription_choose.go')
-rw-r--r--ui/subscription_choose.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/subscription_choose.go b/ui/subscription_choose.go
index ce5a773..e4a77fd 100644
--- a/ui/subscription_choose.go
+++ b/ui/subscription_choose.go
@@ -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
}