summaryrefslogtreecommitdiff
path: root/searx/engines/google_images.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-05-02 13:36:00 -0400
committerAdam Tauber <asciimoo@gmail.com>2015-05-02 13:36:00 -0400
commit59a65d0bdc98a76f03235055f214747f699923a9 (patch)
treed40cd40f1c2f96e44027b619171a0e78cf256a45 /searx/engines/google_images.py
parent01de1c6f7808f45698c2207ae1f1b73c1132b088 (diff)
parent59ee040424ccdef51f3616ed6487522bdaa44f3f (diff)
Merge pull request #305 from dalf/https_again
[enh] reduce the number of http outgoing connections.
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,