Skip to content

Commit a5e47ee

Browse files
committed
Merge pull request #13 from CargoSense/encoding_fix
Converts the base64 encoded data from []byte to string.
2 parents 605e17d + 11c39b4 commit a5e47ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kinesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (f *RequestArgs) AddData(value []byte) {
8181
enc := base64.StdEncoding
8282
buf := make([]byte, enc.EncodedLen(len(value)))
8383
enc.Encode(buf, value)
84-
f.params["Data"] = buf
84+
f.params["Data"] = string(buf)
8585
}
8686

8787
// Error represent error from Kinesis API

0 commit comments

Comments
 (0)