Skip to content

Commit

Permalink
feat: Upgrade to Uploadcare API 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
carlspring committed Jan 13, 2025
1 parent a7bc483 commit c4a8f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/uploadcare/api/RequestHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void setApiHeaders(HttpUriRequest request, String requestBodyMD5) {
String formattedDate = rfc2822(calendar.getTime());

request.addHeader("Content-Type", JSON_CONTENT_TYPE);
request.setHeader("Accept", "application/vnd.uploadcare-v0.6+json");
request.setHeader("Accept", "application/vnd.uploadcare-v0.7+json");
request.setHeader("Date", formattedDate);
request.setHeader("User-Agent",
String.format("javauploadcare/%s/%s", LIBRARY_VERSION, client.getPublicKey()));
Expand Down

0 comments on commit c4a8f61

Please sign in to comment.