summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repoze/bfg/wsgiadapter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/repoze/bfg/wsgiadapter.py b/repoze/bfg/wsgiadapter.py
index 968092a4e..c2d51a799 100644
--- a/repoze/bfg/wsgiadapter.py
+++ b/repoze/bfg/wsgiadapter.py
@@ -19,7 +19,8 @@ def isResponse(ob):
if ( hasattr(ob, 'app_iter') and hasattr(ob, 'headerlist') and
hasattr(ob, 'status') ):
if ( hasattr(ob.app_iter, '__iter__') and
- hasattr(ob.headerlist, '__iter__') ):
+ hasattr(ob.headerlist, '__iter__') and
+ isinstance(ob.status, basestring) ) :
return True
class NaiveWSGIViewAdapter: