diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2022-08-01 17:59:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-01 17:59:49 +0200 |
| commit | 7c9c112484ff091a7c11df1dbb645616b57d662f (patch) | |
| tree | 844dc7ca4d31f0ff97c07d1817dbfba591420b30 /searx/engines/google_scholar.py | |
| parent | 1fbb514a4ead209c95b4ddca0430f754a4c11554 (diff) | |
| parent | 8df1f0c47e03fe7525c40a2856dba950bab8998b (diff) | |
Merge pull request #1560 from return42/http-accept-language
[mod] add 'Accept-Language' HTTP header to online processores
Diffstat (limited to 'searx/engines/google_scholar.py')
| -rw-r--r-- | searx/engines/google_scholar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/google_scholar.py b/searx/engines/google_scholar.py index f9c73097d..41c62886b 100644 --- a/searx/engines/google_scholar.py +++ b/searx/engines/google_scholar.py @@ -52,6 +52,7 @@ language_support = True use_locale_domain = True time_range_support = True safesearch = False +send_accept_language_header = True def time_range_url(params): @@ -75,7 +76,6 @@ def request(query, params): offset = (params['pageno'] - 1) * 10 lang_info = get_lang_info(params, supported_languages, language_aliases, False) - logger.debug("HTTP header Accept-Language --> %s", lang_info['headers']['Accept-Language']) # subdomain is: scholar.google.xy lang_info['subdomain'] = lang_info['subdomain'].replace("www.", "scholar.") |