forked from Icycoide/searxng
fix bing "garbage" results (issue #1275)
This commit is contained in:
parent
b25dccd1ae
commit
75b276f408
2 changed files with 6 additions and 3 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue