From 3857f15c0614925a32bcfd657977d285b1dd389e Mon Sep 17 00:00:00 2001 From: Karsten Lehmann Date: Wed, 26 Aug 2020 16:58:50 +0200 Subject: [PATCH] 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 --- src/ankisyncd/sync_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ankisyncd/sync_app.py b/src/ankisyncd/sync_app.py index 9a41b0e..0baa830 100644 --- a/src/ankisyncd/sync_app.py +++ b/src/ankisyncd/sync_app.py @@ -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