Skip to content

Commit

Permalink
feat: Upgrade to Uploadcare API 0.7
Browse files Browse the repository at this point in the history
Fixes #68.
  • Loading branch information
carlspring committed Jan 13, 2025
1 parent a7bc483 commit 0904b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/uploadcare/api/RequestHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import static com.uploadcare.urls.UrlUtils.trustedBuild;

/**
* A helper class for doing API calls to the Uploadcare API. Supports API version 0.6.
* A helper class for doing API calls to the Uploadcare API. Supports API version 0.7.
*
* TODO Support of throttled requests needs to be added
*/
Expand Down 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 0904b42

Please sign in to comment.