From 5207794249a86db30edff864af6ca406677b68d8 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 21 Dec 2022 15:31:05 +0000 Subject: [PATCH] Fix params on FlareRequest --- pynyaata/flarerequests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynyaata/flarerequests.py b/pynyaata/flarerequests.py index cceea88..467a5fd 100644 --- a/pynyaata/flarerequests.py +++ b/pynyaata/flarerequests.py @@ -28,7 +28,7 @@ class FlareRequests(Session): "cmd": f"request.{method.lower()}", "session": FLARESESSION, "url": url, - "postData": parse.urlencode(params), + "postData": parse.urlencode(params) if params else "", "maxTimeout": timeout, }, )