Skip to content

Commit

Permalink
Fix OkHttp deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
equeim committed Jul 11, 2024
1 parent f38e387 commit 5b15369
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ public RequestBody visitRequestBody(
@NonNull final HTTPRequestBodyPostFields body) {

return RequestBody.create(
MediaType.parse("application/x-www-form-urlencoded"),
PostField.encodeList(body.getPostFields()));
PostField.encodeList(body.getPostFields()),
MediaType.parse("application/x-www-form-urlencoded"));
}

@Override
Expand All @@ -240,8 +240,8 @@ public Void visitPart(@NonNull final PartFormDataBinary part) {
part.name,
null,
RequestBody.create(
MediaType.parse("application/octet-stream"),
part.value));
part.value,
MediaType.parse("application/octet-stream")));

return Void.INSTANCE;
}
Expand Down

0 comments on commit 5b15369

Please sign in to comment.