Skip to content

Commit

Permalink
fix(android): send FormData on older devices (#7519)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Jul 9, 2024
1 parent 4009d23 commit de8b50d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ private void writeFormDataRequestBody(String contentType, JSArray entries) throw

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
os.write(Base64.getDecoder().decode(value));
} else {
os.write(android.util.Base64.decode(value, android.util.Base64.DEFAULT));
}

os.writeBytes(lineEnd);
Expand Down

0 comments on commit de8b50d

Please sign in to comment.