diff options
author | Kirill Isakov <ukwt@ya.ru> | 2016-04-13 22:06:00 +0600 |
---|---|---|
committer | Kirill Isakov <ukwt@ya.ru> | 2016-04-13 22:06:00 +0600 |
commit | d54e82dfb93bf6e0beca31601382c0a23818ec82 (patch) | |
tree | 44faeef21dfca58ae4b561ad7bf10f2555f7afeb /searx/engines/reddit.py | |
parent | d0001f10e6c604f3094d728bed703a60baa9ae17 (diff) | |
download | searxng-d54e82dfb93bf6e0beca31601382c0a23818ec82.tar.gz searxng-d54e82dfb93bf6e0beca31601382c0a23818ec82.zip |
Revert to using random UA in Reddit search engine
Diffstat (limited to 'searx/engines/reddit.py')
-rw-r--r-- | searx/engines/reddit.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/searx/engines/reddit.py b/searx/engines/reddit.py index 08c4fde4b..9729898e5 100644 --- a/searx/engines/reddit.py +++ b/searx/engines/reddit.py @@ -15,7 +15,6 @@ from cgi import escape from urllib import urlencode from urlparse import urlparse from datetime import datetime -from searx.utils import searx_useragent # engine dependent config categories = ['general', 'images', 'news', 'social media'] @@ -31,9 +30,6 @@ def request(query, params): 'limit': page_size}) params['url'] = search_url.format(query=query) - # using searx User-Agent - params['headers']['User-Agent'] = searx_useragent() - return params |