Skip to content

Commit

Permalink
Don't send tail string for binaryStreamOnly option on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyaha authored Nov 11, 2019
1 parent b69692e commit d241243
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion android/src/main/java/com/rnfs/Uploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ private void upload(UploadParams params, UploadResult result) throws Exception {
fileCount++;
bufInput.close();
}
request.writeBytes(tail);
if (!binaryStreamOnly) {
request.writeBytes(tail);
}
request.flush();
request.close();

Expand Down

0 comments on commit d241243

Please sign in to comment.