1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-07-01 03:36:30 +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
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987

View File

@ -160,6 +160,7 @@ public class OCHttpClient {
} }
urlConnection.setRequestProperty("Content-Type", "application/json"); urlConnection.setRequestProperty("Content-Type", "application/json");
urlConnection.setRequestProperty("Accept", "application/json"); urlConnection.setRequestProperty("Accept", "application/json");
urlConnection.setRequestProperty("Transfer-Encoding", "chunked");
String basicAuth = "Basic " + String basicAuth = "Basic " +
Base64.encodeToString((_username + ":" + _password).getBytes(), Base64.NO_WRAP); Base64.encodeToString((_username + ":" + _password).getBytes(), Base64.NO_WRAP);