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

Commit

Permalink
Merge pull request #124 from matrix-org/hotfixes-v0.8.1-r4
Browse files Browse the repository at this point in the history
Hotfixes v0.8.1-r4
  • Loading branch information
erikjohnston committed Apr 17, 2015
2 parents 0575840 + fd4fa90 commit 231498a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion register_new_matrix_user
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion synapse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit 231498a

Please sign in to comment.