From 0d3cadf36551fa0bd88ea4f615772cef6f1d19e0 Mon Sep 17 00:00:00 2001 From: ianb Date: Wed, 20 Dec 2006 22:42:05 +0000 Subject: Use a more appropriate parameter name --- paste/recursive.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paste/recursive.py b/paste/recursive.py index a1515f1..fbd213e 100644 --- a/paste/recursive.py +++ b/paste/recursive.py @@ -242,15 +242,15 @@ class Recursive(object): self.previous_environ = environ self.start_response = start_response - def __call__(self, path, new_environ=None): + def __call__(self, path, extra_environ=None): """ `extra_environ` is an optional dictionary that is also added to the forwarded request. E.g., ``{'HTTP_HOST': 'new.host'}`` could be used to forward to a different virtual host. """ environ = self.original_environ.copy() - if new_environ: - environ.update(new_environ) + if extra_environ: + environ.update(extra_environ) environ['paste.recursive.previous_environ'] = self.previous_environ base_path = self.original_environ.get('SCRIPT_NAME') if path.startswith('/'): -- cgit v1.2.1