sent a 302 to prevent caching of redirects

This commit is contained in:
Lars Hoogestraat 2018-06-26 00:11:39 +02:00
parent 69fa8928d0
commit a669c75b9f
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func (fn TemplateHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
http.Error(rw, err.Error(), http.StatusInternalServerError)
}
} else {
statusCode = http.StatusMovedPermanently
statusCode = http.StatusFound
if len(errorMsg) > 0 {
setCookie(rw, "ErrorMsg", "/", errorMsg)
} else if len(successMsg) > 0 {