changeset 4522:a5ecf8f3303e

web.serving: typo in __call__ fixed
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 01 Feb 2009 20:07:22 +0100
parents 64e3ae35a5eb
children 12ccfa96b1e4
files MoinMoin/web/serving.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/serving.py	Sun Feb 01 20:05:58 2009 +0100
+++ b/MoinMoin/web/serving.py	Sun Feb 01 20:07:22 2009 +0100
@@ -53,7 +53,7 @@
     def __call__(self, environ, start_response):
         if 'HTTP_X_FORWARDED_FOR' in environ:
             addrs = environ.pop('HTTP_X_FORWARDED_FOR').split(',')
-            addrs = [x.strip() for addr in addrs]
+            addrs = [addr.strip() for addr in addrs]
         elif 'REMOTE_ADDR' in environ:
             addrs = [environ['REMOTE_ADDR']]
         else: