summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/saml2/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/client.py b/src/saml2/client.py
index e0d71ba1..3dd447df 100644
--- a/src/saml2/client.py
+++ b/src/saml2/client.py
@@ -523,7 +523,7 @@ class Saml2Client(Base):
if binding == BINDING_SOAP:
response_bindings = [BINDING_SOAP]
- elif binding == BINDING_HTTP_POST or BINDING_HTTP_REDIRECT:
+ elif binding in [BINDING_HTTP_POST, BINDING_HTTP_REDIRECT]:
response_bindings = [BINDING_HTTP_POST, BINDING_HTTP_REDIRECT]
else:
response_bindings = self.config.preferred_binding[