From 58f1b13eb8d115c5d5a1138cd66cf609523a61dd Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sat, 7 Jan 2017 17:51:07 +0100 Subject: [PATCH] Archives search need to be https by default --- pgweb/search/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgweb/search/views.py b/pgweb/search/views.py index 9291f9a2..65f72cfe 100644 --- a/pgweb/search/views.py +++ b/pgweb/search/views.py @@ -179,7 +179,7 @@ def search(request): memc = None if not hits: # No hits found - so try to get them from the search server - c = httplib.HTTPConnection(settings.ARCHIVES_SEARCH_SERVER, strict=True, timeout=5) + c = httplib.HTTPSConnection(settings.ARCHIVES_SEARCH_SERVER, strict=True, timeout=5) c.request('POST', '/archives-search/', urlstr, {'Content-type': 'application/x-www-form-urlencoded; charset=utf-8'}) c.sock.settimeout(20) # Set a 20 second timeout try: -- 2.39.5