WIP pull #1

Merged
ErikaHarker merged 8 commits from goffee/core:main into main 2024-12-16 15:39:01 -05:00
Showing only changes of commit 8950cb539a - Show all commits

View file

@ -245,7 +245,7 @@ func (app *App) makeHTTPRouterHandlerFunc(h Controller, ms []Hook) httprouter.Ha
w.WriteHeader(ctx.Response.statusCode)
}
if ctx.Response.redirectTo != "" {
http.Redirect(w, r, ctx.Response.redirectTo, http.StatusPermanentRedirect)
http.Redirect(w, r, ctx.Response.redirectTo, http.StatusTemporaryRedirect)
} else {
w.Write(ctx.Response.body)
}