summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2015-06-14 18:58:40 +0200
committerMarcel Hellkamp <marc@gsites.de>2015-06-14 18:58:40 +0200
commit7ad07e5ba63a53b967f30ca22b4b2ab788131a96 (patch)
treed0f311b8e7d8e0cd57fac40123406a0ad0eadc12
parent78e1f5f10e0b8c9ccbb1b09fcca502539dda46ed (diff)
downloadbottle-feature-761-explicit-request.tar.gz
No longer support mounted WSGI apps that return True or False (which is not allowed anyway).feature-761-explicit-request
-rw-r--r--bottle.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bottle.py b/bottle.py
index c40ad9a..b892c38 100644
--- a/bottle.py
+++ b/bottle.py
@@ -703,8 +703,7 @@ class Bottle(object):
return rs.body.append
body = app(request.environ, start_response)
- if body and rs.body: body = itertools.chain(rs.body, body)
- rs.body = body or rs.body
+ rs.body = itertools.chain(rs.body, body) if rs.body else body
return rs
finally:
request.path_shift(-path_depth)