Support SSE for source updates #197
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "davidoskky/ReaderForSelfoss-multiplatform:source-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR implements support for Server Side Events when calling the /update endpoint. While this technically supports the new API introduced in 6.1.0, the information is not used in any way.
The information could be used to display a toast message communicating to the user the update progress, but it is unclear whether this is useful or would just clutter the UI.
I removed the authentication information from the header. The /update endpoint requires no authentication and sending authentication information over GET requests can be unsafe.
Types of changes
This implements feature #140
269937ff09
to4b9899c04e
Please don't. Older versions of selfoss work like this.
This is also used for BASIC authentication.
As far as I can see, all versions back up to selfoss 1.1 do not need authentication to trigger sources update. In fact, in every version it is advised to have a cronjob doing a curl on the /update endpoint.
I have not removed authentication for other endpoints, the change is only modifying the request to /update.
Sorry about that, I thought that the change was for every call.
Regarding this comment
What's the point of these changes if that does nothing ?
Checkout
From your project repository, check out a new branch and test the changes.