Browse Source

Merge pull request #2130 from msafadieh/master

Make default query submission method configurable
Adam Tauber 4 years ago
parent
commit
e6d002a730
2 changed files with 2 additions and 1 deletions
  1. 1 1
      searx/preferences.py
  2. 1 0
      searx/settings.yml

+ 1 - 1
searx/preferences.py

@@ -348,7 +348,7 @@ class Preferences(object):
                 }
             ),
             'method': EnumStringSetting(
-                'POST',
+                settings['server'].get('method', 'POST'),
                 choices=('GET', 'POST')
             ),
             'safesearch': MapSetting(

+ 1 - 0
searx/settings.yml

@@ -16,6 +16,7 @@ server:
     base_url : False # Set custom base_url. Possible values: False or "https://your.custom.host/location/"
     image_proxy : False # Proxying image results through searx
     http_protocol_version : "1.0"  # 1.0 and 1.1 are supported
+    method: "POST" # POST queries are more secure as they don't show up in history but may cause problems when using Firefox containers
 
 ui:
     static_path : "" # Custom static path - leave it blank if you didn't change