Archives search need to be https by default
authorMagnus Hagander <magnus@hagander.net>
Sat, 7 Jan 2017 16:51:07 +0000 (17:51 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 7 Jan 2017 16:51:07 +0000 (17:51 +0100)
pgweb/search/views.py

index 9291f9a2f66ac40e85f1eff674468fde877c49aa..65f72cfea227d4531b44789e2135968df0f382b4 100644 (file)
@@ -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: