mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -04:00
checking the authentication if works
This commit is contained in:
parent
852deaf57b
commit
0b4b223692
@ -71,11 +71,11 @@ fun ProductFlavor.fetchUrl(): String {
|
|||||||
return url
|
return url
|
||||||
.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