Merge pull request #1303 from MarcAbonce/bing

Fix bing "garbage" results
This commit is contained in:
Adam Tauber 2018-07-09 11:00:37 +02:00 committed by GitHub
commit d51732c0e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -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():