summaryrefslogtreecommitdiff
path: root/searx/engines/google_images.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2015-05-02 11:43:12 +0200
committerAlexandre Flament <alex@al-f.net>2015-05-02 11:43:12 +0200
commit78edc16e66fccbfb16c522f4453c88a85de61bf4 (patch)
treeef5844cfb06bf16681fcb34cdb0a322287cf7dc8 /searx/engines/google_images.py
parentbbd83f5a519381ac7ea690a1645258d106a9ba8a (diff)
downloadsearxng-78edc16e66fccbfb16c522f4453c88a85de61bf4.tar.gz
searxng-78edc16e66fccbfb16c522f4453c88a85de61bf4.zip
[enh] reduce the number of http outgoing connections.
engines that still use http : gigablast, bing image for thumbnails, 1x and dbpedia autocompleter
Diffstat (limited to 'searx/engines/google_images.py')
-rw-r--r--searx/engines/google_images.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
index 1c0e62f5c..21ca8946b 100644
--- a/searx/engines/google_images.py
+++ b/searx/engines/google_images.py
@@ -56,6 +56,9 @@ def response(resp):
continue
thumbnail_src = result['tbUrl']
+ # http to https
+ thumbnail_src = thumbnail_src.replace("http://", "https://")
+
# append result
results.append({'url': href,
'title': title,