summaryrefslogtreecommitdiff
path: root/paste/cascade.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-09-21 06:18:51 +0000
committerianb <devnull@localhost>2005-09-21 06:18:51 +0000
commit1487cd0432078bef55550f6ec109687f29284fcd (patch)
treed56b92158a6087a6a01ffce4a4a87ad04ca90974 /paste/cascade.py
parentb1a95f9bacfb0a8e6690e716e929817900df4975 (diff)
downloadpaste-1487cd0432078bef55550f6ec109687f29284fcd.tar.gz
Be more careful about sharing environments
Diffstat (limited to 'paste/cascade.py')
-rw-r--r--paste/cascade.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/cascade.py b/paste/cascade.py
index 4931fd5..31b79d5 100644
--- a/paste/cascade.py
+++ b/paste/cascade.py
@@ -73,8 +73,9 @@ class Cascade(object):
return start_response(status, headers, exc_info)
for app in self.apps[:-1]:
+ environ_copy = environ.copy()
try:
- return app(environ, repl_start_response)
+ return app(environ_copy, repl_start_response)
except self.catch_exceptions:
pass
return self.apps[-1](environ, start_response)