Skip to content

Conversation

@SvenWoltmann
Copy link

In RestConnection.sendData(..), the String data parameter is converted to a byte array twice: once to get the number of bytes, then again to actually send it. With my change, it's converted to a byte array only once.

@yepher
Copy link
Contributor

yepher commented Mar 10, 2016

Thank you for catching that.

yepher added a commit that referenced this pull request Mar 10, 2016
When sending data to the API, data string should be converted to byte array only once
@yepher yepher merged commit 8c3e4de into SparkPost:master Mar 10, 2016
@yepher
Copy link
Contributor

yepher commented Mar 11, 2016

This has been released:
See: https://github.com/SparkPost/java-sparkpost/releases/tag/0.12

And Nexus here:
https://repo.maven.apache.org/maven2/com/sparkpost/sparkpost-lib/

(If you don't see it in Maven repo immediately check back as the Maven cache takes some time to update)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants