diff options
| author | mo khan <mo@mokhan.ca> | 2025-06-13 15:45:35 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-06-13 15:45:35 -0600 |
| commit | 65dd3e8e7e3234e5451bba9bf65bc12fdbf36425 (patch) | |
| tree | 7553e6c85d03c4542b737b1948cd34efb73f4417 | |
| parent | 508de573199aacf7579ef4bcd6090b6e8b777277 (diff) | |
fix: do not write the header twice
| -rw-r--r-- | app/controllers/sparkles/controller.go | 1 |
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 } } |
