From efc3c293f472a6993ca086fa335daf3719c6922a Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 14 Apr 2025 15:54:49 -0600 Subject: refactor: do not explicitly set the 301 status code --- app/controllers/sessions/controller.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/sessions/controller.go b/app/controllers/sessions/controller.go index 1a709de..ba3d112 100644 --- a/app/controllers/sessions/controller.go +++ b/app/controllers/sessions/controller.go @@ -20,8 +20,6 @@ func (c *Controller) MountTo(mux *http.ServeMux) { } func (c *Controller) New(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusFound) - url := c.cfg.Config.AuthCodeURL("todo-csrf-token", oauth2.SetAuthURLParam("audience", "todo")) http.Redirect(w, r, url, http.StatusFound) } -- cgit v1.2.3