diff --git a/scripts/proxy.py b/scripts/proxy.py index cc100a7..a5a8165 100644 --- a/scripts/proxy.py +++ b/scripts/proxy.py @@ -148,7 +148,7 @@ def request(self, flow): new_metadata = message_response[0] new_body = message_response[1] - flow.response = http.HTTPResponse.make( + flow.response = http.Response.make( new_metadata['status_code'], new_body, map(convert_headers_to_bytes, new_metadata['headers']) @@ -196,7 +196,7 @@ def response(self, flow): #print("Prepping response!") - flow.response = http.HTTPResponse.make( + flow.response = http.Response.make( new_metadata['status_code'], new_body, map(convert_headers_to_bytes, new_metadata['headers'])