1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2026-08-23 06:13:04 +00:00

Import some sources from legacy HTTP Client to permit using self signed certificates like before

It's not the perfect solution but this works

Rename HTTPRequestBuilder to OCHttpClient & make it child of HttpClient
This commit is contained in:
Loic Blot
2016-12-20 22:17:44 +01:00
parent f0ec0f8b9f
commit 62ad5b1d34
5 changed files with 348 additions and 15 deletions
@@ -48,7 +48,7 @@ import java.io.IOException;
import fr.unix_experience.owncloud_sms.R;
import fr.unix_experience.owncloud_sms.defines.DefaultPrefs;
import fr.unix_experience.owncloud_sms.engine.HTTPRequestBuilder;
import fr.unix_experience.owncloud_sms.engine.OCHttpClient;
/**
* A login screen that offers login via email/password.
@@ -241,7 +241,7 @@ public class LoginActivity extends AppCompatActivity {
@Override
protected Boolean doInBackground(Void... params) {
_returnCode = 0;
HTTPRequestBuilder http = new HTTPRequestBuilder(_serverURI, _login, _password);
OCHttpClient http = new OCHttpClient(_serverURI, _login, _password);
GetMethod testMethod = http.getVersion();
try {
_returnCode = http.execute(testMethod);