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:
parent
bc889958dc
commit
3857f15c06
@ -499,7 +499,7 @@ class SyncApp:
|
|||||||
def __call__(self, req):
|
def __call__(self, req):
|
||||||
# Get and verify the session
|
# Get and verify the session
|
||||||
try:
|
try:
|
||||||
hkey = req.POST['k']
|
hkey = req.params['k']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
hkey = None
|
hkey = None
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user