update cookie settings

This commit is contained in:
Wim Brand
2020-02-05 11:56:08 +01:00
parent 650c7ede6c
commit ea6d8bf6c8
3 changed files with 10 additions and 0 deletions

View File

@@ -183,6 +183,7 @@ func (wc *WebController) serveForm(
// Execute the extra actions if any
if td.Form.Extra.SetCookie != nil {
w.Header().Del("Set-Cookie")
http.SetCookie(w, td.Form.Extra.SetCookie)
}
if td.Form.Extra.RedirectTo != "" {