summaryrefslogtreecommitdiff
path: root/searx/__init__.py
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-09-14 14:17:12 +0200
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-10-15 14:05:42 +0200
commit0616d26feb0f96b3d4fd6b2744ae0288c9fed96b (patch)
tree61a7550cfde0055605b4bfe1ba36bf7d1ce2d918 /searx/__init__.py
parent6e6dbc1bb4a3e6f8746ea3677cdbc190c762b511 (diff)
downloadsearxng-0616d26feb0f96b3d4fd6b2744ae0288c9fed96b.tar.gz
searxng-0616d26feb0f96b3d4fd6b2744ae0288c9fed96b.zip
improve https rewriting
Diffstat (limited to 'searx/__init__.py')
-rw-r--r--searx/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/searx/__init__.py b/searx/__init__.py
index 0acc61447..d4fc7f0bb 100644
--- a/searx/__init__.py
+++ b/searx/__init__.py
@@ -24,5 +24,7 @@ else:
with open(settings_path) as settings_yaml:
settings = load(settings_yaml)
-# loade https rules
-load_https_rules(https_rewrite_path)
+# load https rules only if https rewrite is enabled
+if settings.get('server', {}).get('https_rewrite'):
+ # loade https rules
+ load_https_rules(https_rewrite_path)