From 5dc9b586b59404b0febc5ed50b8a24a7ebbf762e Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 2 Jul 2021 23:46:01 -0400 Subject: [PATCH] changes to armor encoding --- routes/pgp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/pgp.go b/routes/pgp.go index 6c0f349..172920b 100644 --- a/routes/pgp.go +++ b/routes/pgp.go @@ -23,7 +23,8 @@ type PGPKey struct { func GetOpenPGPInformationEncoded(c *gin.Context) { query := c.Copy().Request.Body - body, _ := ioutil.ReadAll(query) + query2 := c.Copy().Request.Body + body, _ := ioutil.ReadAll(query2) block, err := armor.Decode(query) if err != nil {