mirror of
https://github.com/searxng/searxng.git
synced 2025-07-14 08:49:19 +02:00
Merge pull request #1303 from MarcAbonce/bing
Fix bing "garbage" results
This commit is contained in:
commit
d51732c0e5
2 changed files with 6 additions and 3 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue