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