diff options
Diffstat (limited to 'wsgitools/scgi/forkpool.py')
-rw-r--r-- | wsgitools/scgi/forkpool.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py index 7df1575..b2bedcc 100644 --- a/wsgitools/scgi/forkpool.py +++ b/wsgitools/scgi/forkpool.py @@ -465,6 +465,10 @@ class SCGIServer(object): raise exc_info_for_raise(exc_info) finally: exc_info = None + assert isinstance(status, str) + assert isinstance(headers, list) + assert all(isinstance(k, str) and isinstance(v, str) + for (k, v) in headers) assert not response_head[0] # unset or not sent headers = "".join(map("%s: %s\r\n".__mod__, headers)) full_header = "Status: %s\r\n%s\r\n" % (status, headers) |