diff options
author | ianb <devnull@localhost> | 2006-03-02 17:29:47 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-03-02 17:29:47 +0000 |
commit | 1c991ac2fb694caffe3867c65ce637a445148696 (patch) | |
tree | 6682056b501ceeb7c4aeadb1f9e428de4345db7f /paste/wsgilib.py | |
parent | 03d701577e629f2533d5d29654292e3e755d321b (diff) | |
download | paste-1c991ac2fb694caffe3867c65ce637a445148696.tar.gz |
Don't let unicode get through raw_interactive without an error
Diffstat (limited to 'paste/wsgilib.py')
-rw-r--r-- | paste/wsgilib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py index a838587..dc170e3 100644 --- a/paste/wsgilib.py +++ b/paste/wsgilib.py @@ -227,6 +227,10 @@ def raw_interactive(application, path='', raise_on_wsgi_error=False, try: try: for s in app_iter: + if not isinstance(s, str): + raise ValueError( + "The app_iter response can only contain str (not " + "unicode); got: %r" % s) headers_sent.append(True) if not headers_set: raise AssertionError("Content sent w/o headers!") |