Skip to content

Commit 77ed359

Browse files
committed
refactor(core): Change User-Agent format to match new standard
1 parent 73570d6 commit 77ed359

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/java/com/ibm/watson/developer_cloud/util/RequestUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public final class RequestUtils {
3939
private static final Logger LOG = Logger.getLogger(RequestUtils.class.getName());
4040

4141
private static final String[] properties =
42-
new String[] { "java.vendor", "java.version", "os.arch", "os.name", "os.version" };
42+
new String[] { "os.name", "os.version", "java.vendor", "java.version" };
4343
private static String userAgent;
4444

4545
private RequestUtils() {
@@ -175,10 +175,10 @@ private static String loadSdkVersion() {
175175
private static String buildUserAgent() {
176176
final List<String> details = new ArrayList<String>();
177177
for (String propertyName : properties) {
178-
details.add(propertyName + "=" + System.getProperty(propertyName));
178+
details.add(System.getProperty(propertyName));
179179
}
180180

181-
return "watson-apis-java-sdk/" + loadSdkVersion() + " (" + RequestUtils.join(details, "; ") + ")";
181+
return "watson-apis-java-sdk-" + loadSdkVersion() + " " + RequestUtils.join(details, " ");
182182
}
183183

184184
/**

0 commit comments

Comments
 (0)