Skip to content

Commit

Permalink
MPSDK-953: fixed missing header
Browse files Browse the repository at this point in the history
  • Loading branch information
SoloJr committed Oct 14, 2021
1 parent e49affe commit 6cee626
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 6cee626

Please sign in to comment.