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