Alexandre Flament 10 lat temu
rodzic
commit
043b269c6e

+ 1
- 1
searx/engines/bing_images.py Wyświetl plik

@@ -26,7 +26,7 @@ safesearch = True
26 26
 # search-url
27 27
 base_url = 'https://www.bing.com/'
28 28
 search_string = 'images/search?{query}&count=10&first={offset}'
29
-thumb_url = "http://ts1.mm.bing.net/th?id={ihk}" # no https, bad certificate
29
+thumb_url = "http://ts1.mm.bing.net/th?id={ihk}"  # no https, bad certificate
30 30
 
31 31
 # safesearch definitions
32 32
 safesearch_types = {2: 'STRICT',

+ 1
- 1
searx/tests/engines/test_currency_convert.py Wyświetl plik

@@ -40,5 +40,5 @@ class TestCurrencyConvertEngine(SearxTestCase):
40 40
         self.assertEqual(len(results), 1)
41 41
         self.assertEqual(results[0]['answer'], '10 EUR = 5.0 USD (1 EUR = 0.5 USD)')
42 42
         now_date = datetime.now().strftime('%Y%m%d')
43
-        self.assertEqual(results[0]['url'], 'http://finance.yahoo.com/currency/converter-results/' +
43
+        self.assertEqual(results[0]['url'], 'https://finance.yahoo.com/currency/converter-results/' +
44 44
                                             now_date + '/10-eur-to-usd.html')

+ 1
- 1
searx/tests/engines/test_stackoverflow.py Wyświetl plik

@@ -64,7 +64,7 @@ class TestStackoverflowEngine(SearxTestCase):
64 64
         self.assertEqual(type(results), list)
65 65
         self.assertEqual(len(results), 1)
66 66
         self.assertEqual(results[0]['title'], 'This is the title')
67
-        self.assertEqual(results[0]['url'], 'http://stackoverflow.com/questions/this.is.the.url')
67
+        self.assertEqual(results[0]['url'], 'https://stackoverflow.com/questions/this.is.the.url')
68 68
         self.assertEqual(results[0]['content'], 'This is the content')
69 69
 
70 70
         html = """

+ 1
- 1
searx/tests/engines/test_vimeo.py Wyświetl plik

@@ -52,7 +52,7 @@ class TestVimeoEngine(SearxTestCase):
52 52
         self.assertEqual(type(results), list)
53 53
         self.assertEqual(len(results), 1)
54 54
         self.assertEqual(results[0]['title'], 'This is the title')
55
-        self.assertEqual(results[0]['url'], 'http://vimeo.com/videoid')
55
+        self.assertEqual(results[0]['url'], 'https://vimeo.com/videoid')
56 56
         self.assertEqual(results[0]['content'], '')
57 57
         self.assertEqual(results[0]['thumbnail'], 'http://image.url.webp')
58 58
         self.assertIn('/videoid', results[0]['embedded'])