Restore the android HTTP auth download workaround from the old server

This commit is contained in:
Kovid Goyal 2017-06-04 16:53:41 +05:30
parent 39cefc303a
commit 9299f99939
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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)