Encode string for Response
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Michel Roux 2022-12-21 18:06:03 +00:00
parent bf49fd81c8
commit 8475acd411
1 changed files with 1 additions and 1 deletions

View File

@ -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