diff --git a/changedetectionio/content_fetchers/base.py b/changedetectionio/content_fetchers/base.py index b50d831e..bb42f66b 100644 --- a/changedetectionio/content_fetchers/base.py +++ b/changedetectionio/content_fetchers/base.py @@ -99,7 +99,7 @@ class Fetcher(): :return: """ # Ask it what the user agent is, if its obviously ChromeHeadless, switch it to the default - ua_in_custom_headers = next((k for k in headers.keys() if k.lower() == "user-agent"), None) + ua_in_custom_headers = next((v for k, v in headers.items() if k.lower() == "user-agent"), None) if ua_in_custom_headers: return ua_in_custom_headers