1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2026-08-11 16:32:53 +00:00

Add Transfer-Encoding option chunked in requests

This commit is contained in:
Loic Blot
2017-12-01 19:45:16 +01:00
parent ff845bc079
commit 141dfa40ed
@@ -160,6 +160,7 @@ public class OCHttpClient {
}
urlConnection.setRequestProperty("Content-Type", "application/json");
urlConnection.setRequestProperty("Accept", "application/json");
urlConnection.setRequestProperty("Transfer-Encoding", "chunked");
String basicAuth = "Basic " +
Base64.encodeToString((_username + ":" + _password).getBytes(), Base64.NO_WRAP);