mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Fix for Issue #222: Android plugin FileUploader with UTF-8 in params
This commit is contained in:
parent
9eb02a4882
commit
073f71563c
@ -274,7 +274,7 @@ public class FileTransfer extends Plugin {
|
|||||||
dos.writeBytes(LINE_START + BOUNDRY + LINE_END);
|
dos.writeBytes(LINE_START + BOUNDRY + LINE_END);
|
||||||
dos.writeBytes("Content-Disposition: form-data; name=\"" + key.toString() + "\";");
|
dos.writeBytes("Content-Disposition: form-data; name=\"" + key.toString() + "\";");
|
||||||
dos.writeBytes(LINE_END + LINE_END);
|
dos.writeBytes(LINE_END + LINE_END);
|
||||||
dos.writeBytes(params.getString(key.toString()));
|
dos.write(params.getString(key.toString()).getBytes());
|
||||||
dos.writeBytes(LINE_END);
|
dos.writeBytes(LINE_END);
|
||||||
}
|
}
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user