From 1b04b7eb4bc4200779f1b14caf1dde7ac13cc74b Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 21 Dec 2022 15:41:50 +0000 Subject: [PATCH] Fix destroy on FlareRequest --- pynyaata/flarerequests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynyaata/flarerequests.py b/pynyaata/flarerequests.py index 6650ee8..81be1b9 100644 --- a/pynyaata/flarerequests.py +++ b/pynyaata/flarerequests.py @@ -45,7 +45,7 @@ class FlareRequests(Session): except RequestException: session = post( CLOUDPROXY_ENDPOINT, - {"cmd": "sessions.destroy", "session": FLARESESSION}, + json={"cmd": "sessions.destroy", "session": FLARESESSION}, ) raise RequestException(solution)