summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2021-05-19 23:58:52 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2021-05-19 23:58:52 +0300
commit1548443bf26077749caac0ad11cf02b5d1f06cc7 (patch)
tree249210c5b93f3c92dccddee1e7a8de90bcabd1b5
parent9d8e10d246e37f90418cfbb16461219f477d7934 (diff)
downloadpysaml2-1548443bf26077749caac0ad11cf02b5d1f06cc7.tar.gz
Do not restrict the falsy values of bindings on pick_binding method
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
-rw-r--r--src/saml2/entity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/entity.py b/src/saml2/entity.py
index 779310b3..1a07807c 100644
--- a/src/saml2/entity.py
+++ b/src/saml2/entity.py
@@ -305,7 +305,7 @@ class Entity(HTTPBase):
sfunc = getattr(self.metadata, service)
- if bindings is None:
+ if not bindings:
if request and request.protocol_binding:
bindings = [request.protocol_binding]
else: