mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-12 00:48:29 -04:00
checking the authentication if works
This commit is contained in:
parent
852deaf57b
commit
0b4b223692
@ -72,10 +72,10 @@ fun ProductFlavor.fetchUrl(): String {
|
|||||||
.openConnection()
|
.openConnection()
|
||||||
.apply {
|
.apply {
|
||||||
if (urlString.isAuthenticationUrl) {
|
if (urlString.isAuthenticationUrl) {
|
||||||
setRequestProperty(
|
// setRequestProperty(
|
||||||
"Authorization",
|
// "Authorization",
|
||||||
"Basic ${Base64.getEncoder().encodeToString(System.getenv(secretKey).toByteArray())}"
|
// "Basic ${Base64.getEncoder().encodeToString(System.getenv(secretKey).toByteArray())}"
|
||||||
)
|
// )
|
||||||
}
|
}
|
||||||
connect()
|
connect()
|
||||||
getInputStream()
|
getInputStream()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user