summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-13 15:45:35 -0600
committermo khan <mo@mokhan.ca>2025-06-13 15:45:35 -0600
commit65dd3e8e7e3234e5451bba9bf65bc12fdbf36425 (patch)
tree7553e6c85d03c4542b737b1948cd34efb73f4417 /app/controllers
parent508de573199aacf7579ef4bcd6090b6e8b777277 (diff)
fix: do not write the header twice
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/sparkles/controller.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/sparkles/controller.go b/app/controllers/sparkles/controller.go
index 5167c2a..0b86c7e 100644
--- a/app/controllers/sparkles/controller.go
+++ b/app/controllers/sparkles/controller.go
@@ -56,7 +56,6 @@ func (c *Controller) Create(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusCreated)
if err := serde.ToHTTP(w, r, sparkle); err != nil {
pls.LogError(r.Context(), err)
- w.WriteHeader(http.StatusInternalServerError)
return
}
}