From f84cbadf2e7e6c86c2d6d10c7b18511e1767e5d3 Mon Sep 17 00:00:00 2001 From: eater <=@eater.me> Date: Mon, 5 Aug 2019 23:30:37 +0200 Subject: [PATCH] so many bugs --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index 6e88c57..24c78f8 100644 --- a/http.go +++ b/http.go @@ -207,7 +207,7 @@ func (it *httpServer) verifyRequest(r *http.Request, v interface{}) (error) { return err } - body := make([]byte, len(encBody)) + body = make([]byte, len(encBody)) cipher.Decrypt(body, encBody) err = json.Unmarshal(body, v)