diff options
author | Adam Tauber <asciimoo@gmail.com> | 2019-12-21 20:25:39 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2019-12-21 20:25:39 +0100 |
commit | 8850036ded3af2ba7455cef53a8134022e1b544d (patch) | |
tree | ba7951e47a55fb50591acabd021e738f49de3cde /searx/engines | |
parent | da56bda26542de5697691ff80dac6df876fb366b (diff) | |
download | searxng-8850036ded3af2ba7455cef53a8134022e1b544d.tar.gz searxng-8850036ded3af2ba7455cef53a8134022e1b544d.zip |
[fix] add explicit useragent header to requests - closes #1459
Diffstat (limited to 'searx/engines')
-rw-r--r-- | searx/engines/qwant.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py index de12955c6..54e9dafad 100644 --- a/searx/engines/qwant.py +++ b/searx/engines/qwant.py @@ -50,6 +50,7 @@ def request(query, params): language = match_language(params['language'], supported_languages, language_aliases) params['url'] += '&locale=' + language.replace('-', '_').lower() + params['headers']['User-Agent'] = 'Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0' return params |