Merge branch 'master' of github.com:rohe/pysaml2
This commit is contained in:
@@ -177,7 +177,7 @@ class HTTPBase(object):
|
||||
std_attr[attr] = morsel[attr]
|
||||
elif attr == "max-age":
|
||||
if morsel["max-age"]:
|
||||
std_attr["expires"] = _since_epoch(morsel["max-age"])
|
||||
std_attr["expires"] = time.time() + int(morsel["max-age"])
|
||||
|
||||
for att, item in PAIRS.items():
|
||||
if std_attr[att]:
|
||||
|
@@ -75,7 +75,7 @@ class Request(object):
|
||||
|
||||
def _verify(self):
|
||||
assert self.message.version == "2.0"
|
||||
if self.message.destination and \
|
||||
if self.message.destination and self.receiver_addrs and \
|
||||
self.message.destination not in self.receiver_addrs:
|
||||
logger.error("%s not in %s" % (self.message.destination,
|
||||
self.receiver_addrs))
|
||||
|
Reference in New Issue
Block a user