summaryrefslogtreecommitdiff
path: root/searx/utils.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2015-05-02 12:35:57 +0200
committerAlexandre Flament <alex@al-f.net>2015-05-02 12:35:57 +0200
commitf5d3b215660c740e9bdda6071bd3d5dc980cc304 (patch)
tree93695b924d200c7ff59a46667c782cd0267598b0 /searx/utils.py
parentbbd83f5a519381ac7ea690a1645258d106a9ba8a (diff)
downloadsearxng-f5d3b215660c740e9bdda6071bd3d5dc980cc304.tar.gz
searxng-f5d3b215660c740e9bdda6071bd3d5dc980cc304.zip
[fix] user agent : the "rv:{version}" was missing (can be a issue with some engine, like flickr)
Diffstat (limited to 'searx/utils.py')
-rw-r--r--searx/utils.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/searx/utils.py b/searx/utils.py
index e6c107e24..129971e31 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -17,17 +17,16 @@ from searx import logger
logger = logger.getChild('utils')
-ua_versions = ('31.0',
- '32.0',
- '33.0',
+ua_versions = ('33.0',
'34.0',
- '35.0')
+ '35.0',
+ '36.0',
+ '37.0')
ua_os = ('Windows NT 6.3; WOW64',
'X11; Linux x86_64',
'X11; Linux x86')
-
-ua = "Mozilla/5.0 ({os}) Gecko/20100101 Firefox/{version}"
+ua = "Mozilla/5.0 ({os}; rv:{version}) Gecko/20100101 Firefox/{version}"
blocked_tags = ('script',
'style')