Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 231498a

Browse files
committed
Merge pull request #124 from matrix-org/hotfixes-v0.8.1-r4
Hotfixes v0.8.1-r4
2 parents 0575840 + fd4fa90 commit 231498a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

register_new_matrix_user

+6-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ def request_registration(user, password, server_location, shared_secret):
4949
headers={'Content-Type': 'application/json'}
5050
)
5151
try:
52-
f = urllib2.urlopen(req)
52+
if sys.version_info[:3] >= (2, 7, 9):
53+
# As of version 2.7.9, urllib2 now checks SSL certs
54+
import ssl
55+
f = urllib2.urlopen(req, context=ssl.SSLContext(ssl.PROTOCOL_SSLv23))
56+
else:
57+
f = urllib2.urlopen(req)
5358
f.read()
5459
f.close()
5560
print "Success."

synapse/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
""" This is a reference implementation of a Matrix home server.
1717
"""
1818

19-
__version__ = "0.8.1-r3"
19+
__version__ = "0.8.1-r4"

0 commit comments

Comments
 (0)