Browse Source

Fix: add trailing slash to duckduckgo url

Close #1854
Rudis Muiznieks 2 years ago
parent
commit
6804ff048d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      searx/engines/duckduckgo.py

+ 2 - 2
searx/engines/duckduckgo.py

@@ -18,7 +18,7 @@ from searx.network import get
 
 
 # about
 # about
 about = {
 about = {
-    "website": 'https://lite.duckduckgo.com/lite',
+    "website": 'https://lite.duckduckgo.com/lite/',
     "wikidata_id": 'Q12805',
     "wikidata_id": 'Q12805',
     "official_api_documentation": 'https://duckduckgo.com/api',
     "official_api_documentation": 'https://duckduckgo.com/api',
     "use_official_api": False,
     "use_official_api": False,
@@ -46,7 +46,7 @@ language_aliases = {
 time_range_dict = {'day': 'd', 'week': 'w', 'month': 'm', 'year': 'y'}
 time_range_dict = {'day': 'd', 'week': 'w', 'month': 'm', 'year': 'y'}
 
 
 # search-url
 # search-url
-url = 'https://lite.duckduckgo.com/lite'
+url = 'https://lite.duckduckgo.com/lite/'
 url_ping = 'https://duckduckgo.com/t/sl_l'
 url_ping = 'https://duckduckgo.com/t/sl_l'
 
 
 # match query's language to a region code that duckduckgo will accept
 # match query's language to a region code that duckduckgo will accept