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