From e03403dc3c13d072015cc3dc42aaf3ff61e7ce9e Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 23 Feb 2024 14:54:52 +0100 Subject: [PATCH] oops --- changedetectionio/content_fetchers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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