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:
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user