Merge pull request #45 from bcopeland/master
bugs in entity.py for signed responses
This commit is contained in:
@@ -339,7 +339,7 @@ class Entity(HTTPBase):
|
||||
mid = msg.id
|
||||
|
||||
try:
|
||||
to_sign.append([(class_name(msg), mid)])
|
||||
to_sign += [(class_name(msg), mid)]
|
||||
except AttributeError:
|
||||
to_sign = [(class_name(msg), mid)]
|
||||
|
||||
@@ -451,7 +451,7 @@ class Entity(HTTPBase):
|
||||
self._add_info(response, **kwargs)
|
||||
|
||||
if sign:
|
||||
self.sign(response, to_sign=to_sign)
|
||||
return self.sign(response, to_sign=to_sign)
|
||||
elif to_sign:
|
||||
return signed_instance_factory(response, self.sec, to_sign)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user