This commit is contained in:
parent
125d0bde2d
commit
91143c6f1e
@ -29,6 +29,7 @@ class FlareRequests(Session):
|
||||
solution = response.json()
|
||||
|
||||
if "solution" in solution:
|
||||
encoding = None
|
||||
headers = solution["solution"]["headers"]
|
||||
if "content-type" in headers:
|
||||
content_type = headers["content-type"].split(";")
|
||||
@ -43,7 +44,7 @@ class FlareRequests(Session):
|
||||
resolved.headers = headers
|
||||
resolved.raw = BytesIO(solution["solution"]["response"].encode())
|
||||
resolved.url = url
|
||||
resolved.encoding = encoding or None
|
||||
resolved.encoding = encoding
|
||||
resolved.reason = solution["status"]
|
||||
resolved.cookies = solution["solution"]["cookies"]
|
||||
|
||||
|
Reference in New Issue
Block a user