From 1760661c5bcc18a3f834e1f5719a6b09e5f7064a Mon Sep 17 00:00:00 2001 From: Midgard Date: Wed, 8 Jun 2022 17:27:56 +0200 Subject: [PATCH] Update to new MITM API function --- etc/mitm_cors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/mitm_cors.py b/etc/mitm_cors.py index c62f21d..7353290 100644 --- a/etc/mitm_cors.py +++ b/etc/mitm_cors.py @@ -28,7 +28,7 @@ def request(flow: flow.Flow): # Hijack CORS OPTIONS request if flow.request.method == "OPTIONS": - flow.response = http.HTTPResponse.make(200, b"", { + flow.response = http.Response.make(200, b"", { "Access-Control-Allow-Origin": allowed_origin(original_origin), "Access-Control-Allow-Methods": "GET,POST", "Access-Control-Allow-Headers": ALLOW_HEADERS,