fix http basic auth
This commit is contained in:
parent
869868c5d6
commit
f3376172aa
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.fox.ttrss"
|
||||
android:versionCode="102"
|
||||
android:versionName="0.8.1" >
|
||||
android:versionCode="103"
|
||||
android:versionName="0.8.2" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="8"
|
||||
|
@ -157,7 +157,7 @@ public class ApiRequest extends AsyncTask<HashMap<String,String>, Integer, JsonE
|
||||
if (m_transportDebugging) Log.d(TAG, "Using HTTP Basic authentication.");
|
||||
|
||||
conn.setRequestProperty("Authorization", "Basic " +
|
||||
Base64.encode((httpLogin + ":" + httpPassword).getBytes("UTF-8"), Base64.NO_WRAP));
|
||||
Base64.encodeToString((httpLogin + ":" + httpPassword).getBytes("UTF-8"), Base64.NO_WRAP));
|
||||
}
|
||||
|
||||
conn.setDoInput(true);
|
||||
|
@ -637,7 +637,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
|
||||
|
||||
if (httpLogin.length() > 0) {
|
||||
conn.setRequestProperty("Authorization", "Basic " +
|
||||
Base64.encode((httpLogin + ":" + httpPassword).getBytes("UTF-8"), Base64.NO_WRAP));
|
||||
Base64.encodeToString((httpLogin + ":" + httpPassword).getBytes("UTF-8"), Base64.NO_WRAP));
|
||||
}
|
||||
|
||||
InputStream content = conn.getInputStream();
|
||||
|
Loading…
Reference in New Issue
Block a user