Skip to content

Commit 128d2fe

Browse files
committed
fixing user agent field
1 parent bb30ea4 commit 128d2fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/sparkpost-lib/src/main/java/com/sparkpost/transport/RestConnection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.apache.commons.lang3.StringUtils;
1717
import org.apache.log4j.Logger;
1818

19+
import com.sparkpost.Build;
1920
import com.sparkpost.Client;
2021
import com.sparkpost.exception.SparkPostException;
2122
import com.sparkpost.exception.SparkPostIllegalServerResponseException;
@@ -31,7 +32,7 @@ public class RestConnection {
3132
private static final Logger logger = Logger.getLogger(RestConnection.class);
3233

3334
// TODO: set this up to be set by build machine.
34-
private static final String VERSION = "0.0.1-SNAPSHOT";
35+
private static final String VERSION = Build.VERSION + " (" + Build.GIT_SHORT_HASH + ")";
3536

3637
private static final Base64 BASE64 = new Base64();
3738
private static final String DEFAULT_CHARSET = "UTF-8";

0 commit comments

Comments
 (0)