File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
java/com/aliyun/openservices/ots/utils Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 88
99public class VersionInfoUtils {
1010 private static final String VERSION_INFO_FILE = "versioninfo.properties" ;
11+ private static final String USER_AGENT_PREFIX = "aliyun-tablestore-sdk-java" ;
1112
1213 private static Log log = LogFactory .getLog (VersionInfoUtils .class );
1314
@@ -25,7 +26,9 @@ public static String getVersion() {
2526
2627 public static String getDefaultUserAgent () {
2728 if (defaultUserAgent == null ) {
28- defaultUserAgent = "aliyun-sdk-java" + "/" + getVersion ();
29+ defaultUserAgent = USER_AGENT_PREFIX + "/" + getVersion () + "(" +
30+ System .getProperty ("os.name" ) + "/" + System .getProperty ("os.version" ) + "/" +
31+ System .getProperty ("os.arch" ) + ";" + System .getProperty ("java.version" ) + ")" ;
2932 }
3033 return defaultUserAgent ;
3134 }
Original file line number Diff line number Diff line change 1- version =OTS-2.0 .4
1+ version =2.2 .4
You can’t perform that action at this time.
0 commit comments