mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2026-08-25 23:21:32 +00:00
Add Transfer-Encoding option chunked in requests
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user