From 9299f9993938bc2f519c35655907391ac0a059f3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 4 Jun 2017 16:53:41 +0530 Subject: [PATCH] Restore the android HTTP auth download workaround from the old server --- src/calibre/srv/content.py | 2 +- src/calibre/srv/legacy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/srv/content.py b/src/calibre/srv/content.py index 53f99ca3d7..1432cc9611 100644 --- a/src/calibre/srv/content.py +++ b/src/calibre/srv/content.py @@ -278,7 +278,7 @@ def icon(ctx, rd, which): return ans -@endpoint('/get/{what}/{book_id}/{library_id=None}') +@endpoint('/get/{what}/{book_id}/{library_id=None}', android_workaround=True) def get(ctx, rd, what, book_id, library_id): book_id, rest = book_id.partition('_')[::2] try: diff --git a/src/calibre/srv/legacy.py b/src/calibre/srv/legacy.py index b9150cdc55..191aa285b7 100644 --- a/src/calibre/srv/legacy.py +++ b/src/calibre/srv/legacy.py @@ -257,6 +257,6 @@ def stanza(ctx, rd, rest): raise HTTPRedirect(ctx.url_for('/opds')) -@endpoint('/legacy/get/{what}/{book_id}/{library_id}/{+filename=""}') +@endpoint('/legacy/get/{what}/{book_id}/{library_id}/{+filename=""}', android_workaround=True) def legacy_get(ctx, rd, what, book_id, library_id, filename): return get(ctx, rd, what, book_id, library_id)