Skip to content

Commit

Permalink
private.constellation: make sure response from SendPayload gets Base6…
Browse files Browse the repository at this point in the history
…4-decoded
  • Loading branch information
patrickmn committed Feb 21, 2018
1 parent 7672c47 commit ee49806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/constellation/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ee49806

Please sign in to comment.