Update pkg/web/handler/task.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Robin Olsen
2026-03-20 12:57:47 +01:00
committed by GitHub
parent 969d7d07d6
commit dcd094b630

View File

@@ -32,7 +32,7 @@ func HandleTaskStatus(w http.ResponseWriter, r *http.Request) {
if hx.IsHxRequest() {
if taskFeedback.Success {
w.Header().Set("HX-Trigger", "task-status-success")
w.WriteHeader(http.StatusOK)
w.WriteHeader(http.StatusNoContent)
} else {
hx.WriteString(`
<div id="status" type="button" hx-get="/status" hx-target="#status" hx-swap="outerHTML">