Browse Source

Fixed protected entry redirection (fix #55)

Now using 'StatusSeeOther' status code which changes POST to GET responses.
dependabot/npm_and_yarn/web/prismjs-1.21.0
Max Schmitt 8 years ago
parent
commit
d8977aefa6
  1. 2
      handlers/public.go

2
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

Loading…
Cancel
Save