summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2013-12-20 11:39:32 +0100
committerRoland Hedberg <roland.hedberg@adm.umu.se>2013-12-20 11:39:32 +0100
commit40917120284988ca367ed5010c09f99d67a762f5 (patch)
treee3be8851ae27eb343566ae63d3a602f7ca89cd4f
parent0eed0efedf25d211fbdc94d0a6af5017cc658421 (diff)
downloadpysaml2-40917120284988ca367ed5010c09f99d67a762f5.tar.gz
Actually there to make testing somewhat simpler.
-rw-r--r--src/saml2/httputil.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/saml2/httputil.py b/src/saml2/httputil.py
index d00b0531..c67c9fec 100644
--- a/src/saml2/httputil.py
+++ b/src/saml2/httputil.py
@@ -47,7 +47,10 @@ class Response(object):
self.headers.append(('Content-type', _content_type))
def __call__(self, environ, start_response, **kwargs):
- start_response(self.status, self.headers)
+ try:
+ start_response(self.status, self.headers)
+ except TypeError:
+ pass
return self.response(self.message or geturl(environ), **kwargs)
def _response(self, message="", **argv):