Skip to content

Commit ee49806

Browse files
committed
private.constellation: make sure response from SendPayload gets Base64-decoded
1 parent 7672c47 commit ee49806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

private/constellation/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (c *Client) SendPayload(pl []byte, b64From string, b64To []string) ([]byte,
9696
return nil, fmt.Errorf("Non-200 status code: %+v", res)
9797
}
9898
defer res.Body.Close()
99-
return ioutil.ReadAll(res.Body)
99+
return ioutil.ReadAll(base64.NewDecoder(base64.StdEncoding, res.Body))
100100
}
101101

102102
func (c *Client) ReceivePayload(key []byte) ([]byte, error) {

0 commit comments

Comments
 (0)