Remove login information from update request
All checks were successful
Check PR code / translations (pull_request) Successful in 38s
Check PR code / Lint (pull_request) Successful in 49s
Check PR code / build (pull_request) Successful in 35s

Removed the username and password in the GET /update request.
The endpoint does not require authentication and it is unsafe to transmit login credentials over GET requests.
This commit is contained in:
davidoskky 2025-04-12 22:48:42 +02:00
parent a7bc64d61e
commit 269937ff09

View File

@ -375,15 +375,6 @@ class SelfossApi(
appSettingsService.getBasicPassword().isNotEmpty() appSettingsService.getBasicPassword().isNotEmpty()
) { ) {
headers { headers {
append(
HttpHeaders.Authorization,
constructBasicAuthValue(
BasicAuthCredentials(
username = appSettingsService.getBasicUserName(),
password = appSettingsService.getBasicPassword(),
),
),
)
append( append(
HttpHeaders.Accept, HttpHeaders.Accept,
"text/event-stream", "text/event-stream",