diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-04-28 11:12:50 +0300 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-04-28 11:12:50 +0300 |
commit | 0f29cc4931e322f8f5ec27c551d1ded463b6789f (patch) | |
tree | 8ba2efbffbcac333a1dcf5ff762be0a6eeb71bf7 | |
parent | db347c7f95909f6972a2ffef3d3c9961928ef4a8 (diff) | |
download | pysaml2-0f29cc4931e322f8f5ec27c551d1ded463b6789f.tar.gz |
Fix s2repoze check for content length
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
-rw-r--r-- | src/saml2/s2repoze/plugins/sp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/s2repoze/plugins/sp.py b/src/saml2/s2repoze/plugins/sp.py index 2292ed0c..a840ab37 100644 --- a/src/saml2/s2repoze/plugins/sp.py +++ b/src/saml2/s2repoze/plugins/sp.py @@ -470,7 +470,7 @@ class SAML2Plugin(object): is_request = "SAMLRequest" in query is_response = "SAMLResponse" in query - has_content_length = "CONTENT_LENGTH" in environ or environ["CONTENT_LENGTH"] + has_content_length = environ.get("CONTENT_LENGTH") if not has_content_length and not is_request and not is_response: logger.debug("[identify] get or empty post") |