From b811412699f633b58771e9cd182e612734b60cf5 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Sat, 20 Apr 2024 03:41:53 +0100 Subject: [PATCH] Fix LANG ENV for Linux. #1036 --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 9d02d58..79ccf87 100644 --- a/src/utils.py +++ b/src/utils.py @@ -139,7 +139,7 @@ def get_webdriver(proxy: dict = None) -> WebDriver: language = os.environ.get('LANG', None) if language is not None: - options.add_argument('--lang=%s' % language) + options.add_argument('--accept-lang=%s' % language) # Fix for Chrome 117 | https://github.com/FlareSolverr/FlareSolverr/issues/910 if USER_AGENT is not None: