From ce631377a534daab969a99a95b5fd46421b72cf7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 19 Dec 2024 16:51:22 +0000 Subject: [PATCH] Tidying --- utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 2be46f2d2..6d538739a 100644 --- a/utils.py +++ b/utils.py @@ -5330,8 +5330,10 @@ def browser_supports_download_filename(ua_str: str) -> bool: def detect_mitm(self) -> bool: """Detect if a request contains a MiTM """ - mitm_domains = ('cloudflare', 'radware', 'imperva', 'akamai', - 'azure', 'fastly', 'google') + mitm_domains = ( + 'cloudflare', 'radware', 'imperva', 'akamai', 'azure', + 'fastly', 'google' + ) # look for domains within these headers check_headers = ( 'Server', 'Report-To', 'Report-to', 'report-to',