From 0275f5dca7c66640587294b95ce396dd6d6a02c8 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 13 Jun 2025 15:51:50 -0600 Subject: fix: fix double write header issue --- app/controllers/dashboard/controller.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/controllers/dashboard/controller.go') 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 } } -- cgit v1.2.3