diff --git a/internal/web/controllers/v1/pastes.go b/internal/web/controllers/v1/pastes.go index 7b7f114..589bf7c 100644 --- a/internal/web/controllers/v1/pastes.go +++ b/internal/web/controllers/v1/pastes.go @@ -105,7 +105,7 @@ func v1DeletePaste(ctx *fasthttp.RequestCtx) { // Unmarshal the body values := make(map[string]string) - err := json.Unmarshal(ctx.PostBody(), &values) + err = json.Unmarshal(ctx.PostBody(), &values) if err != nil { ctx.SetStatusCode(fasthttp.StatusBadRequest) ctx.SetBodyString("invalid request body")