mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2025-06-07 07:56:14 +00:00
Release 1.3.2
This commit is contained in:
parent
84134671be
commit
f4b20b5873
@ -20,8 +20,8 @@ android {
|
||||
|
||||
defaultConfig {
|
||||
applicationId "fr.unix_experience.owncloud_sms"
|
||||
versionCode 61
|
||||
versionName "1.3.1"
|
||||
versionCode 62
|
||||
versionName "1.3.2"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 26
|
||||
maxSdkVersion 26
|
||||
|
@ -155,7 +155,9 @@ public class OCHttpClient {
|
||||
urlConnection.setRequestMethod(method);
|
||||
urlConnection.setRequestProperty("User-Agent", _userAgent);
|
||||
urlConnection.setInstanceFollowRedirects(true);
|
||||
urlConnection.setDoOutput(true);
|
||||
if (!"GET".equals(method)) {
|
||||
urlConnection.setDoOutput(true);
|
||||
}
|
||||
urlConnection.setRequestProperty("Content-Type", "application/json");
|
||||
urlConnection.setRequestProperty("Accept", "application/json");
|
||||
|
||||
@ -164,9 +166,11 @@ public class OCHttpClient {
|
||||
urlConnection.setRequestProperty("Authorization", basicAuth);
|
||||
urlConnection.setChunkedStreamingMode(0);
|
||||
|
||||
OutputStream out = new BufferedOutputStream(urlConnection.getOutputStream());
|
||||
out.write(requestBody.getBytes(Charset.forName("UTF-8")));
|
||||
out.close();
|
||||
if (!"GET".equals(method)) {
|
||||
OutputStream out = new BufferedOutputStream(urlConnection.getOutputStream());
|
||||
out.write(requestBody.getBytes(Charset.forName("UTF-8")));
|
||||
out.close();
|
||||
}
|
||||
|
||||
response = handleHTTPResponse(urlConnection, skipError);
|
||||
} catch (IOException e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user