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,