Skip to content

Commit 06bb368

Browse files
author
Roland Hedberg
committed
Merge pull request #45 from bcopeland/master
bugs in entity.py for signed responses
2 parents dfcfda5 + c23b5d5 commit 06bb368

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/saml2/entity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def sign(self, msg, mid=None, to_sign=None, sign_prepare=False):
339339
mid = msg.id
340340

341341
try:
342-
to_sign.append([(class_name(msg), mid)])
342+
to_sign += [(class_name(msg), mid)]
343343
except AttributeError:
344344
to_sign = [(class_name(msg), mid)]
345345

@@ -451,7 +451,7 @@ def _response(self, in_response_to, consumer_url=None, status=None,
451451
self._add_info(response, **kwargs)
452452

453453
if sign:
454-
self.sign(response, to_sign=to_sign)
454+
return self.sign(response, to_sign=to_sign)
455455
elif to_sign:
456456
return signed_instance_factory(response, self.sec, to_sign)
457457
else:

0 commit comments

Comments
 (0)