Make cbz file paths into OpenAPI path arguments #26
Reference in New Issue
Block a user
Delete Branch "antifuchs/ComicOPDS:move-path-to-path"
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?
FastAPI, in Query arguments, interprets characters like
+,;and'in special ways (see https://github.com/fastapi/fastapi/issues/720), which causes issues with the requests that some clients such as Panels send: Receiving these bare characters results in request errors.So in order to prevent that special handling, move the
pathargument into the URL path: That eliminates the special-handling of those characters, resulting in far more requests from affected clients succeeding.This fixes #25
(My editor tried to automatically pep8-format the main.py file, which I have attempted to undo manually; I hope no annoying reformats slipped through)
Make cbz file paths into path OpenAPI argumentsto Make cbz file paths into OpenAPI path argumentsThanks for the PR, I'll read through it and test it out! 👍