mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1315 (Error 500 when access to the server)
This commit is contained in:
parent
dd6ab0957f
commit
6e0b40dac5
@ -134,7 +134,7 @@ class LibraryServer(object):
|
||||
if opts.password:
|
||||
self.config['/'] = {
|
||||
'tools.digest_auth.on' : True,
|
||||
'tools.digest_auth.realm' : _('Password to access your calibre library. Username is ') + opts.username.strip(),
|
||||
'tools.digest_auth.realm' : (_('Password to access your calibre library. Username is ') + opts.username.strip()).encode('ascii', 'replace'),
|
||||
'tools.digest_auth.users' : {opts.username.strip():opts.password.strip()},
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user