diff options
| author | mo khan <mo@mokhan.ca> | 2025-06-13 15:51:50 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-06-13 15:51:50 -0600 |
| commit | 0275f5dca7c66640587294b95ce396dd6d6a02c8 (patch) | |
| tree | e43b8e162ecebad3884ccafe5283f94539c01e59 /app/controllers/dashboard/controller.go | |
| parent | 65dd3e8e7e3234e5451bba9bf65bc12fdbf36425 (diff) | |
fix: fix double write header issue
Diffstat (limited to 'app/controllers/dashboard/controller.go')
| -rw-r--r-- | app/controllers/dashboard/controller.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/controllers/dashboard/controller.go b/app/controllers/dashboard/controller.go index d279930..c722503 100644 --- a/app/controllers/dashboard/controller.go +++ b/app/controllers/dashboard/controller.go @@ -35,7 +35,6 @@ func (c *Controller) Show(w http.ResponseWriter, r *http.Request) { dto := &ViewDashboardDTO{CurrentUser: currentUser} if err := views.Render(w, "dashboard/show", dto); err != nil { pls.LogError(r.Context(), err) - w.WriteHeader(http.StatusInternalServerError) return } } @@ -50,7 +49,6 @@ func (c *Controller) Navigation(w http.ResponseWriter, r *http.Request) { } if err := views.Render(w, "dashboard/nav", dto); err != nil { pls.LogError(r.Context(), err) - w.WriteHeader(http.StatusInternalServerError) return } } |
