mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 23:07:26 -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
|
||||
.openConnection()
|
||||
.apply {
|
||||
if (urlString.isAuthenticationUrl){
|
||||
setRequestProperty(
|
||||
"Authorization",
|
||||
"Basic ${Base64.getEncoder().encodeToString(System.getenv(secretKey).toByteArray())}"
|
||||
)
|
||||
if (urlString.isAuthenticationUrl) {
|
||||
// setRequestProperty(
|
||||
// "Authorization",
|
||||
// "Basic ${Base64.getEncoder().encodeToString(System.getenv(secretKey).toByteArray())}"
|
||||
// )
|
||||
}
|
||||
connect()
|
||||
getInputStream()
|
||||
|
Loading…
x
Reference in New Issue
Block a user