mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
fix bing "garbage" results (issue #1275)
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user