From ee498061b5a74bf1f3290139a53840345fa038cb Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Wed, 21 Feb 2018 16:12:19 -0500 Subject: [PATCH] private.constellation: make sure response from SendPayload gets Base64-decoded --- private/constellation/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/constellation/node.go b/private/constellation/node.go index 7bdabbbca5..9a97ae26bf 100644 --- a/private/constellation/node.go +++ b/private/constellation/node.go @@ -96,7 +96,7 @@ func (c *Client) SendPayload(pl []byte, b64From string, b64To []string) ([]byte, return nil, fmt.Errorf("Non-200 status code: %+v", res) } defer res.Body.Close() - return ioutil.ReadAll(res.Body) + return ioutil.ReadAll(base64.NewDecoder(base64.StdEncoding, res.Body)) } func (c *Client) ReceivePayload(key []byte) ([]byte, error) {