diff --git a/pynyaata/flarerequests.py b/pynyaata/flarerequests.py index 382897d..4212edb 100644 --- a/pynyaata/flarerequests.py +++ b/pynyaata/flarerequests.py @@ -42,7 +42,7 @@ class FlareRequests(Session): if "solution" in solution: resolved = Response() - resolved.raw = StringIO(solution["solution"]["response"]) + resolved.raw = StringIO(solution["solution"]["response"].encode()) resolved.status_code = solution["solution"]["status"] resolved.headers = solution["solution"]["headers"] resolved.url = url