Skip to content

Commit

Permalink
Update proxy_session.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyrno42 authored Dec 5, 2024
1 parent 50f828a commit 0ecb5d4
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions proxy_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,6 @@ def send(self, request, **kwargs):

return result

data = result.json()
full_body = json.loads(data["body"])
status_code = full_body["status"]

body = b64decode(full_body["body"])
headers = full_body["headers"]
reason = full_body["message"]

final_resp = requests.Response()
final_resp.status_code = status_code
final_resp.headers = headers
final_resp.reason = reason
final_resp._content = body
final_resp._content
final_resp.encoding = "utf-8"

return final_resp


def proxied_get_request_session():
return ProxiedSession()

0 comments on commit 0ecb5d4

Please # to comment.