Skip to content

Commit

Permalink
Merge pull request IdentityPython#477 from c00kiemon5ter/feature-fix-…
Browse files Browse the repository at this point in the history
…examples

Fix examlpes using cherrypy.wsgiserver
  • Loading branch information
c00kiemon5ter committed Nov 16, 2017
2 parents 6f71875 + 68a3d88 commit bc6d4cd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions example/idp2/idp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
import time

from hashlib import sha1
from cherrypy import wsgiserver
from cherrypy.wsgiserver.ssl_builtin import BuiltinSSLAdapter

try:
from cheroot.wsgi import Server as WSGIServer
from cheroot.ssl.builtin import BuiltinSSLAdapter
except ImportError:
from cherrypy.wsgiserver import CherryPyWSGIServer as WSGIServer
from cherrypy.wsgiserver.ssl_builtin import BuiltinSSLAdapter

from six.moves.urllib.parse import parse_qs
from six.moves.http_cookies import SimpleCookie
Expand Down Expand Up @@ -1085,7 +1090,7 @@ def application(environ, start_response):
pass
ds.DefaultSignature(sign_alg, digest_alg)

SRV = wsgiserver.CherryPyWSGIServer((HOST, PORT), application)
SRV = WSGIServer((HOST, PORT), application)

_https = ""
if CONFIG.HTTPS:
Expand Down

0 comments on commit bc6d4cd

Please sign in to comment.