Fix LANG ENV for Linux. #1036

This commit is contained in:
ilike2burnthing
2024-04-20 03:41:53 +01:00
committed by GitHub
parent 0bb8de144f
commit b811412699

View File

@@ -139,7 +139,7 @@ def get_webdriver(proxy: dict = None) -> WebDriver:
language = os.environ.get('LANG', None) language = os.environ.get('LANG', None)
if language is not 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 # Fix for Chrome 117 | https://github.com/FlareSolverr/FlareSolverr/issues/910
if USER_AGENT is not None: if USER_AGENT is not None: