Skip to content

Commit

Permalink
Merge pull request #266 from Mangopay/bugfix/AddUserAgentInHeader
Browse files Browse the repository at this point in the history
MPSDK-953: fixed missing header
  • Loading branch information
SoloJr authored Oct 14, 2021
2 parents 74fd162 + 6cee626 commit 32ae3df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/mangopay/core/RestTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,8 @@ private Map<String, String> getHttpHeaders(String restUrl) throws Exception {
httpHeaders.putAll(authHlp.getHttpHeaderKey());
}

httpHeaders.put("User-Agent", String.format("MangoPay V2 SDK Java %s", root.getConfig().getVersion()));

return httpHeaders;
}

Expand Down

0 comments on commit 32ae3df

Please sign in to comment.