Skip to content

Commit

Permalink
APPS-2550 Make user-agent string more distinctive (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-i-v-a authored Mar 19, 2024
1 parent 8ea353b commit 85ca788
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## in develop

...
* Change to make the user-agent string for dxScala more distinctive.

## 0.13.9 (2024-02-29)
* adds `headJobOnDemand` attribute to jobNew call
Expand Down
4 changes: 0 additions & 4 deletions api/src/main/java/com/dnanexus/DXToolkitVersion.java

This file was deleted.

5 changes: 2 additions & 3 deletions api/src/main/java/com/dnanexus/DXUserAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.dnanexus;

/**
* Utility class that produces an appropriate user-agent string for the Java
* Utility class that produces an appropriate user-agent string for the dxScala
* client.
*/
class DXUserAgent {
Expand All @@ -26,11 +26,10 @@ class DXUserAgent {
*/
public static String getUserAgent() {
// Contains the following pieces of info:
// dx-toolkit version (e.g. 0.100.0)
// host operating system
// Java specification version (e.g. 1.6.0_27)
// VM name and version
return "dxjava/" + DXToolkitVersion.TOOLKIT_VERSION + " " + System.getProperty("os.name").replace(" ", "")
return "dxscala/" + " " + System.getProperty("os.name").replace(" ", "")
+ " java/" + System.getProperty("java.version") + " [" + System.getProperty("java.vm.name") + "]/"
+ System.getProperty("java.vm.version");
}
Expand Down

0 comments on commit 85ca788

Please sign in to comment.