diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-14 15:54:49 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-14 15:54:49 -0600 |
| commit | efc3c293f472a6993ca086fa335daf3719c6922a (patch) | |
| tree | 67551c81bc29041b4fb68ddb754188d2c7c34431 /app/controllers/sessions | |
| parent | b12eb55fdb603290e3bc62880f6e9dff538571de (diff) | |
refactor: do not explicitly set the 301 status code
Diffstat (limited to 'app/controllers/sessions')
| -rw-r--r-- | app/controllers/sessions/controller.go | 2 |
1 files changed, 0 insertions, 2 deletions
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) } |
