Compare commits
2 Commits
4b9899c04e
...
269937ff09
Author | SHA1 | Date | |
---|---|---|---|
269937ff09 | |||
a7bc64d61e |
@ -19,6 +19,7 @@ import io.ktor.client.plugins.cookies.HttpCookies
|
||||
import io.ktor.client.plugins.logging.LogLevel
|
||||
import io.ktor.client.plugins.logging.Logger
|
||||
import io.ktor.client.plugins.logging.Logging
|
||||
import io.ktor.client.plugins.sse.SSE
|
||||
import io.ktor.client.request.get
|
||||
import io.ktor.client.request.headers
|
||||
import io.ktor.client.request.parameter
|
||||
@ -89,6 +90,7 @@ class SelfossApi(
|
||||
}
|
||||
}
|
||||
}
|
||||
install(SSE)
|
||||
expectSuccess = false
|
||||
}
|
||||
|
||||
@ -374,13 +376,8 @@ class SelfossApi(
|
||||
) {
|
||||
headers {
|
||||
append(
|
||||
HttpHeaders.Authorization,
|
||||
constructBasicAuthValue(
|
||||
BasicAuthCredentials(
|
||||
username = appSettingsService.getBasicUserName(),
|
||||
password = appSettingsService.getBasicPassword(),
|
||||
),
|
||||
),
|
||||
HttpHeaders.Accept,
|
||||
"text/event-stream",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user