Skip to content

Commit

Permalink
fix(android): UTF-8 encode form data value (#7525)
Browse files Browse the repository at this point in the history
Co-authored-by: Malo <[email protected]>
Co-authored-by: jcesarmobile <[email protected]>
  • Loading branch information
3 people authored Jun 24, 2024
1 parent 0ad0c3f commit a73ed31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private void writeFormDataRequestBody(String contentType, JSArray entries) throw
if (type.equals("string")) {
os.writeBytes(twoHyphens + boundary + lineEnd);
os.writeBytes("Content-Disposition: form-data; name=\"" + key + "\"" + lineEnd + lineEnd);
os.writeBytes(value);
os.write(value.getBytes(StandardCharsets.UTF_8));
os.writeBytes(lineEnd);
} else if (type.equals("base64File")) {
String fileName = entry.getString("fileName");
Expand Down

0 comments on commit a73ed31

Please sign in to comment.