Skip to content

Commit

Permalink
user-agent: set user agent to API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jlejoux committed Oct 2, 2019
1 parent 6d66986 commit 8a67265
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public Map<String, String> getHeaders() {
Map<String, String> headers = new HashMap<>();
headers.put("Authorization", "Basic " + Base64.encodeToString((projectId + ":" + privateKey).getBytes(), Base64.NO_WRAP));
headers.put("Idempotency-Key", UUID.randomUUID().toString());
headers.put("User-Agent", System.getProperty("http.agent") + " ProcessOut Android-Bindings/" + ProcessOut.SDK_VERSION);
return headers;
}
};
Expand Down

0 comments on commit 8a67265

Please sign in to comment.