From 0f90b267c78a5cb9044ab70842e114b70ebe324f Mon Sep 17 00:00:00 2001 From: Lukas SP Date: Sun, 23 Aug 2020 00:45:56 +0200 Subject: [PATCH] Fix error --- internal/web/controllers/v1/pastes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")