Fix error

This commit is contained in:
Lukas SP 2020-08-23 00:45:56 +02:00
parent e297a5c2b4
commit 0f90b267c7
1 changed files with 1 additions and 1 deletions

View File

@ -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")