Skip to content

Commit

Permalink
Merge pull request #8003 from m1ga/http_post
Browse files Browse the repository at this point in the history
[TIMOB-20483] Android: fix file upload progress by adding setChunkedStreamingMode
  • Loading branch information
ashcoding committed Jun 27, 2016
2 parents 03f3711 + b801ee6 commit 65b25f7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,8 @@ public void run()
client.setDoInput(true);
if (isPostOrPutOrPatch) {
client.setDoOutput(true);
client.setRequestProperty("Transfer-Encoding", "chunked");
client.setChunkedStreamingMode(1024);
}
client.setUseCaches(false);
// This is to set gzip default to disable
Expand Down

0 comments on commit 65b25f7

Please sign in to comment.