Skip to content

Commit

Permalink
fix(android): send FormData on older devices (#7519) (#7557)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jul 9, 2024
1 parent 6aaffbc commit 8e15a3e
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 8e15a3e

Please sign in to comment.