We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b619018 commit e1b275aCopy full SHA for e1b275a
src/s2repoze/plugins/sp.py
@@ -496,7 +496,9 @@ def identify(self, environ):
496
# find it
497
environ["post.fieldstorage"] = post
498
# restore wsgi.input incase that is needed
499
- environ['wsgi.input'] = StringIO(environ['s2repoze.body'])
+ # only of s2repoze.body is present
500
+ if 's2repoze.body' in environ:
501
+ environ['wsgi.input'] = StringIO(environ['s2repoze.body'])
502
return {}
503
else:
504
logger.info("[sp.identify] --- SAMLResponse ---")
0 commit comments