Read hostkey from GET or POST

This commit applies the fix from
https://github.com/tsudoko/anki-sync-server/pull/60/files

However it using a shorter version by utilizing the params attribute of
the webob request. The params attribute combines the get and post params
This commit is contained in:
Karsten Lehmann 2020-08-26 16:58:50 +02:00
parent bc889958dc
commit 3857f15c06
No known key found for this signature in database
GPG Key ID: 6C34E8199743C270

View File

@ -499,7 +499,7 @@ class SyncApp:
def __call__(self, req):
# Get and verify the session
try:
hkey = req.POST['k']
hkey = req.params['k']
except KeyError:
hkey = None