diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-08-02 19:38:27 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-08-02 20:32:22 +0200 |
commit | 1fcf066a8188b28eb644ea304a131d40b1b341eb (patch) | |
tree | 2e5dbd18300e41fc93870921840d3cafbc701d97 /searx/utils.py | |
parent | d0830d4edf8a9ee794d5897afd813c88f0ea720b (diff) | |
download | searxng-1fcf066a8188b28eb644ea304a131d40b1b341eb.tar.gz searxng-1fcf066a8188b28eb644ea304a131d40b1b341eb.zip |
[mod] change settings file structure according to #314
Diffstat (limited to 'searx/utils.py')
-rw-r--r-- | searx/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/utils.py b/searx/utils.py index c9784159c..cc31726b6 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -26,6 +26,7 @@ ua_versions = ('33.0', ua_os = ('Windows NT 6.3; WOW64', 'X11; Linux x86_64', 'X11; Linux x86') + ua = "Mozilla/5.0 ({os}; rv:{version}) Gecko/20100101 Firefox/{version}" blocked_tags = ('script', @@ -40,7 +41,7 @@ def gen_useragent(): def searx_useragent(): return 'searx/{searx_version} {suffix}'.format( searx_version=VERSION_STRING, - suffix=settings['server'].get('useragent_suffix', '')) + suffix=settings['outgoing'].get('useragent_suffix', '')) def highlight_content(content, query): |