Commits

Robert Brewer committed a115e32

Might as well be explicit about open() modes.

  • Participants
  • Parent commits ff6b223
  • Branches 800-error-handlers

Comments (0)

Files changed (1)

cherrypy/wsgiserver/__init__.py

     
     def populate_ssl_environ(self):
         """Create WSGI environ entries to be merged into each request."""
-        cert = open(self.ssl_certificate).read()
+        cert = open(self.ssl_certificate, 'rb').read()
         cert = crypto.load_certificate(crypto.FILETYPE_PEM, cert)
         ssl_environ = {
             "wsgi.url_scheme": "https",