Fix error viewing AnkiConnect page

This commit is contained in:
Alex Yatskov 2020-01-05 17:49:41 -08:00
parent 2767d2928e
commit 7603f2b251

View File

@ -145,7 +145,7 @@ class WebServer:
def handlerWrapper(self, req):
if len(req.body) == 0:
body = 'AnkiConnect'
body = 'AnkiConnect v.{}'.format(util.setting('apiVersion')).encode('utf-8')
else:
try:
params = json.loads(req.body.decode('utf-8'))