diff options
author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2018-05-20 18:10:22 -0500 |
---|---|---|
committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2018-05-20 18:13:32 -0500 |
commit | 75b276f408487db8fecc6eab7abd6126323a7efe (patch) | |
tree | 17c72295e9926625a5f8a338baf77296847434b5 /searx/utils.py | |
parent | b25dccd1ae818ed7fe27b3f6dfb80a755599ab12 (diff) | |
download | searxng-75b276f408487db8fecc6eab7abd6126323a7efe.tar.gz searxng-75b276f408487db8fecc6eab7abd6126323a7efe.zip |
fix bing "garbage" results (issue #1275)
Diffstat (limited to 'searx/utils.py')
-rw-r--r-- | searx/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/utils.py b/searx/utils.py index 77c392909..eccbaaf19 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -57,9 +57,9 @@ blocked_tags = ('script', 'style') -def gen_useragent(): +def gen_useragent(os=None): # TODO - return ua.format(os=choice(ua_os), version=choice(ua_versions)) + return ua.format(os=os or choice(ua_os), version=choice(ua_versions)) def searx_useragent(): |