Support SSE for source updates #197

Open
davidoskky wants to merge 2 commits from davidoskky/ReaderForSelfoss-multiplatform:source-update into master
Showing only changes of commit 4b9899c04e - Show all commits

View File

@ -365,27 +365,6 @@ class SelfossApi(
suspend fun update(): StatusAndData<String> =
bodyOrFailure(
client.tryToGet(url("/update")) {
if (!shouldHavePostLogin()) {
parameter("username", appSettingsService.getUserName())
parameter("password", appSettingsService.getPassword())
}
if (appSettingsService
.getBasicUserName()
.isNotEmpty() &&
appSettingsService.getBasicPassword().isNotEmpty()
) {
headers {
append(
HttpHeaders.Authorization,
constructBasicAuthValue(
BasicAuthCredentials(
username = appSettingsService.getBasicUserName(),
password = appSettingsService.getBasicPassword(),
),
),
)
}
}
headers {
append(
HttpHeaders.Accept,