mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 04:00:02 +00:00
Merge pull request #1303 from MarcAbonce/bing
Fix bing "garbage" results
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user