Skip to content
Snippets Groups Projects
Commit 231498ac authored by Erik Johnston's avatar Erik Johnston
Browse files

Merge pull request #124 from matrix-org/hotfixes-v0.8.1-r4

Hotfixes v0.8.1-r4
parents 05758408 fd4fa909
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,12 @@ def request_registration(user, password, server_location, shared_secret):
headers={'Content-Type': 'application/json'}
)
try:
f = urllib2.urlopen(req)
if sys.version_info[:3] >= (2, 7, 9):
# As of version 2.7.9, urllib2 now checks SSL certs
import ssl
f = urllib2.urlopen(req, context=ssl.SSLContext(ssl.PROTOCOL_SSLv23))
else:
f = urllib2.urlopen(req)
f.read()
f.close()
print "Success."
......
......@@ -16,4 +16,4 @@
""" This is a reference implementation of a Matrix home server.
"""
__version__ = "0.8.1-r3"
__version__ = "0.8.1-r4"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment