From d8977aefa6a3ec2a18b8fd869d53ab20a9c6b38c Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 30 Nov 2017 22:48:17 +0100 Subject: [PATCH] Fixed protected entry redirection (fix #55) Now using 'StatusSeeOther' status code which changes POST to GET responses. --- handlers/public.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/public.go b/handlers/public.go index 2f23601..23a0a60 100644 --- a/handlers/public.go +++ b/handlers/public.go @@ -79,7 +79,7 @@ func (h *Handler) handleAccess(c *gin.Context) { return "No password set" }() if templateError == "" { - c.Redirect(http.StatusTemporaryRedirect, entry.Public.URL) + c.Redirect(http.StatusSeeOther, entry.Public.URL) go h.registerVisitor(id, c) c.Abort() return