From 15c928aae555bc7f9080d748eceb65b83e32c9fb Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 14 Jul 2008 23:07:27 +0000 Subject: Do the full check. --- repoze/bfg/wsgiadapter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3