From cb5ecf9a292b670bda1130522b41e550b8cc0128 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 21 Dec 2022 15:56:04 +0000 Subject: [PATCH] Don't use text but raw on FlareRequest --- pynyaata/flarerequests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pynyaata/flarerequests.py b/pynyaata/flarerequests.py index 81be1b9..7e70fa2 100644 --- a/pynyaata/flarerequests.py +++ b/pynyaata/flarerequests.py @@ -35,9 +35,11 @@ class FlareRequests(Session): solution = response.json() if "solution" in solution: - response.cookies = solution["solution"]["cookies"] + response.status_code = solution["solution"]["status"] response.headers = solution["solution"]["headers"] - response.text = solution["solution"]["response"] + response.raw = solution["solution"]["response"] + response.url = url + response.cookies = solution["solution"]["cookies"] return response