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,9 +134,9 @@ class LibraryServer(object):
|
|||||||
if opts.password:
|
if opts.password:
|
||||||
self.config['/'] = {
|
self.config['/'] = {
|
||||||
'tools.digest_auth.on' : True,
|
'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()},
|
'tools.digest_auth.users' : {opts.username.strip():opts.password.strip()},
|
||||||
}
|
}
|
||||||
|
|
||||||
self.is_running = False
|
self.is_running = False
|
||||||
self.exception = None
|
self.exception = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user