Skip to content

Commit

Permalink
Updates user agent version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
willrust committed May 24, 2014
1 parent ab7c235 commit 43daaa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion KISSmetricsAPI/src/com/kissmetrics/sdk/ConnectionImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void sendRecord(final String urlString, final ConnectionDelegate delegate
connection.setUseCaches(false);
connection.setRequestMethod("GET");
connection.setConnectTimeout(CONNECTION_TIMEOUT*1000);
connection.setRequestProperty("User-Agent", "KISSmetrics-Android/2.0");
connection.setRequestProperty("User-Agent", "KISSmetrics-Android/2.0.3");
// TODO: Apply any easily obtainable device/OS info to the user agent value

// addressing java.io.EOFException
Expand Down
3 changes: 1 addition & 2 deletions KISSmetricsAPI/src/com/kissmetrics/sdk/VerificationImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ public void verifyTracking(String productKey, String installUuid, VerificationDe

try {
url = new URL(urlString);

connection = createHttpURLConnection(url);
connection.setUseCaches(true); // !!!: Set cache location. ???:Override expiration
connection.setRequestMethod("GET");
connection.setConnectTimeout(CONNECTION_TIMEOUT * 1000);
connection.setRequestProperty("User-Agent", "KISSmetrics-Android/2.0");
connection.setRequestProperty("User-Agent", "KISSmetrics-Android/2.0.3");

// addressing java.io.EOFException
if (Build.VERSION.SDK != null && Build.VERSION.SDK_INT > 13) {
Expand Down

0 comments on commit 43daaa6

Please sign in to comment.