Suwayomi / Tachidesk-Sorayomi

A free and open source manga reader app to read manga from a Tachidesk-Server instance.
https://suwayomi.github.io/Tachidesk-Sorayomi/
Mozilla Public License 2.0
817 stars 62 forks source link

Unable to mark as read behind http to https reverse proxy redirect #292

Open sudogoku opened 6 months ago

sudogoku commented 6 months ago

Describe the bug When accessing the server via a reverse proxy, the Sorayomi app shows "308" as an error and the request is not completed & the chapters remain unread. This only happens when using a reverse proxy set up with a http to https redirect to access the server. Obviously, "308" permanent redirect is being interpreted by Sorayomi as an error (I'm assuming it just checks for non-2xx status codes). After updating the server URL to explicitly include "https", this is no longer an issue.

To Reproduce Steps to reproduce the behavior:

  1. Have a reverse proxy behind a domain name that serves traffic to Tachidesk server.
  2. Enter "http://my.domain.name" in the server URL settings
  3. Go to library, try to mark any chapter as read
  4. See "308" error message pop up

Expected behavior Marking as read should still work as expected. Even though this is easily fixed by including "https" explicitly in the URL, a 308 redirect is pretty standard.

Screenshots Probably not necessary, but will add if requested.

Device information (Server)