Skip to content

Commit

Permalink
POST provider/assets MediaType.APPLICATION_JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
dkovacevic committed May 8, 2024
1 parent 1673472 commit a40f3cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public AssetKey uploadProfilePicture(Cookie cookie, byte[] image, String mimeTyp
.path("assets")
.request(MediaType.APPLICATION_JSON)
.cookie(cookie)
.post(Entity.entity(os.toByteArray(), "multipart/mixed"));
.post(Entity.entity(os.toByteArray(), MediaType.APPLICATION_JSON));

if (response.getStatus() >= 400) {
String msg = response.readEntity(String.class);
Expand Down

0 comments on commit a40f3cd

Please sign in to comment.