Use StringIO for response
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2095c620eb
commit
bf49fd81c8
|
@ -1,3 +1,4 @@
|
||||||
|
from io import StringIO
|
||||||
from urllib import parse
|
from urllib import parse
|
||||||
from requests import RequestException, Response, Session, post
|
from requests import RequestException, Response, Session, post
|
||||||
from .config import CLOUDPROXY_ENDPOINT
|
from .config import CLOUDPROXY_ENDPOINT
|
||||||
|
@ -41,7 +42,7 @@ class FlareRequests(Session):
|
||||||
if "solution" in solution:
|
if "solution" in solution:
|
||||||
resolved = Response()
|
resolved = Response()
|
||||||
|
|
||||||
resolved.raw = solution["solution"]["response"]
|
resolved.raw = StringIO(solution["solution"]["response"])
|
||||||
resolved.status_code = solution["solution"]["status"]
|
resolved.status_code = solution["solution"]["status"]
|
||||||
resolved.headers = solution["solution"]["headers"]
|
resolved.headers = solution["solution"]["headers"]
|
||||||
resolved.url = url
|
resolved.url = url
|
||||||
|
|
Reference in New Issue