From 1f58b37a5e86603b16e137031c36f37580e9d410 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 7 Oct 2018 18:42:43 -0700 Subject: Refactor HTTP response builder --- ui/unread_mark_all_read.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/unread_mark_all_read.go') diff --git a/ui/unread_mark_all_read.go b/ui/unread_mark_all_read.go index c467923..724da67 100644 --- a/ui/unread_mark_all_read.go +++ b/ui/unread_mark_all_read.go @@ -8,7 +8,7 @@ import ( "net/http" "miniflux.app/http/request" - "miniflux.app/http/response" + "miniflux.app/http/response/html" "miniflux.app/http/route" "miniflux.app/logger" ) @@ -19,5 +19,5 @@ func (c *Controller) MarkAllAsRead(w http.ResponseWriter, r *http.Request) { logger.Error("[MarkAllAsRead] %v", err) } - response.Redirect(w, r, route.Path(c.router, "unread")) + html.Redirect(w, r, route.Path(c.router, "unread")) } -- cgit v1.2.3