2
0
mirror of https://github.com/janeczku/calibre-web synced 2024-10-31 15:20:28 +00:00
calibre-web/cps
Adrian Petrescu 5341910ea5
Deal gracefully with invalid Accept-Languages header
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.
2019-01-03 11:45:15 -05:00
..
static Fix #696 2018-12-29 11:16:36 +01:00
templates Merged new caliblur theme 2018-12-27 10:53:19 +01:00
translations Merge remote-tracking branch 'ru-translation/master' 2018-12-16 16:59:22 +01:00
__init__.py custom columns unfinished 2016-04-20 19:25:47 +02:00
book_formats.py Improved message for non configured ebook converter 2018-09-30 09:43:20 +02:00
cache_buster.py python3 compatibility 2017-09-24 07:52:59 -04:00
cli.py Fixes from testing: 2018-09-23 19:15:50 +02:00
comic.py Import covers from comic files during upload 2017-12-02 17:33:55 +01:00
converter.py Improved message for non configured ebook converter 2018-09-30 09:43:20 +02:00
db.py Add ability to store and edit publishers 2018-09-30 14:08:55 +02:00
epub.py Improved error handling for renaming authors and titles (changes related to filesystem and not only to database) 2017-11-30 16:49:46 +01:00
fb2.py Fix #568 (encoding problem in fb2 upload) 2018-08-04 17:08:32 +02:00
gdriveutils.py Improved message for non configured ebook converter 2018-09-30 09:43:20 +02:00
helper.py Fix #712 2018-11-25 13:29:58 +01:00
redirect.py Fix for Python 3 2017-07-13 21:28:00 -07:00
reverseproxy.py Improved message for non configured ebook converter 2018-09-30 09:43:20 +02:00
server.py Merge remote-tracking branch 'swedish/master' 2018-11-24 20:47:11 +01:00
ub.py Bugfix Publisher (upper/lower case, remove publisher, publisher visibility on new users) 2018-10-28 21:33:12 +01:00
uploader.py Improved error handling for renaming authors and titles (changes related to filesystem and not only to database) 2017-11-30 16:49:46 +01:00
web.py Deal gracefully with invalid Accept-Languages header 2019-01-03 11:45:15 -05:00
worker.py Merged new caliblur theme 2018-12-27 10:53:19 +01:00