Skip to content

Commit 0f29cc4

Browse files
committed
Fix s2repoze check for content length
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent db347c7 commit 0f29cc4

File tree

1 file changed

+1
-1
lines changed
  • src/saml2/s2repoze/plugins

1 file changed

+1
-1
lines changed

src/saml2/s2repoze/plugins/sp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def identify(self, environ):
470470

471471
is_request = "SAMLRequest" in query
472472
is_response = "SAMLResponse" in query
473-
has_content_length = "CONTENT_LENGTH" in environ or environ["CONTENT_LENGTH"]
473+
has_content_length = environ.get("CONTENT_LENGTH")
474474

475475
if not has_content_length and not is_request and not is_response:
476476
logger.debug("[identify] get or empty post")

0 commit comments

Comments
 (0)