1
0
Fork 0
forked from goffee/core

change to temporary

This commit is contained in:
Zeni Kim 2024-11-22 16:25:06 -05:00
parent 1657c19cc4
commit 8950cb539a

View file

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