move downloads through the file browser to https by default
authorStefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Mon, 3 Nov 2014 20:05:06 +0000 (21:05 +0100)
committerStefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Mon, 3 Nov 2014 20:05:06 +0000 (21:05 +0100)
pgweb/downloads/views.py

index 60b9642b7c03e03dde165a749e0fd174110bee82..4084eca340b828ecc0eeff52a4c3c605511a389a 100644 (file)
@@ -140,7 +140,7 @@ def mirrorselect(request, path):
        # redirect this to ftp.mirrors.postgresql.org for now...
        # Since requests hit our internal servers, we're also not going to
        # bother logging them - logging will be handled by those servers
-       return HttpResponseRedirect("http://ftp.postgresql.org/pub/%s" % path)
+       return HttpResponseRedirect("https://ftp.postgresql.org/pub/%s" % path)
 
 # Accesses asking for a specific mirror will keep doing that for now.
 # At some time in the future we might consider hijacking them and sending