• Adrian Petrescu's avatar
    Deal gracefully with invalid Accept-Languages header · 5341910e
    Adrian Petrescu authored
    At the moment, calibre-web will raise an internal 500 error if an
    invalid locale identifier is passed in through the `Accept-Language`
    HTTP header (for a non-logged-in user).
    
    This breaks some crappily-built OPDS feed readers, and there's no reason
    to error out so severely. This commit just gracefully falls back to `en`
    if it can't parse the locale identifier.
    
    Fixes #743 among others.
    5341910e
Name
Last commit
Last update
..
static Loading commit data...
templates Loading commit data...
translations Loading commit data...
__init__.py Loading commit data...
book_formats.py Loading commit data...
cache_buster.py Loading commit data...
cli.py Loading commit data...
comic.py Loading commit data...
converter.py Loading commit data...
db.py Loading commit data...
epub.py Loading commit data...
fb2.py Loading commit data...
gdriveutils.py Loading commit data...
helper.py Loading commit data...
redirect.py Loading commit data...
reverseproxy.py Loading commit data...
server.py Loading commit data...
ub.py Loading commit data...
uploader.py Loading commit data...
web.py Loading commit data...
worker.py Loading commit data...