diff options
author | Adam Tauber <asciimoo@gmail.com> | 2018-07-09 11:00:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 11:00:37 +0200 |
commit | d51732c0e5e89f86abfe68718277a2e21b190103 (patch) | |
tree | 9b6cc22151b8a8fbd9e74595c092a681ea765b39 /searx/utils.py | |
parent | 736f0fff0eeaded50d02f2f989fc3a4c638b3d3c (diff) | |
parent | 75b276f408487db8fecc6eab7abd6126323a7efe (diff) | |
download | searxng-d51732c0e5e89f86abfe68718277a2e21b190103.tar.gz searxng-d51732c0e5e89f86abfe68718277a2e21b190103.zip |
Merge pull request #1303 from MarcAbonce/bing
Fix bing "garbage" results
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 3b2e39919..bd6c3fe2f 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -59,9 +59,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(): |