diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-14 23:07:27 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-14 23:07:27 +0000 |
| commit | 15c928aae555bc7f9080d748eceb65b83e32c9fb (patch) | |
| tree | 4d4eb21a6ca38cd75326115b1b9b9ae13ac81687 | |
| parent | 9d9f0825f4d0da22bc39a511471d16316f421c16 (diff) | |
| download | pyramid-15c928aae555bc7f9080d748eceb65b83e32c9fb.tar.gz pyramid-15c928aae555bc7f9080d748eceb65b83e32c9fb.tar.bz2 pyramid-15c928aae555bc7f9080d748eceb65b83e32c9fb.zip | |
Do the full check.
| -rw-r--r-- | repoze/bfg/wsgiadapter.py | 3 |
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: |
