summaryrefslogtreecommitdiff
path: root/paste/proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'paste/proxy.py')
-rw-r--r--paste/proxy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/proxy.py b/paste/proxy.py
index faed5a7..11b4cef 100644
--- a/paste/proxy.py
+++ b/paste/proxy.py
@@ -202,8 +202,8 @@ class TransparentProxy(object):
length = int(environ['CONTENT_LENGTH'])
body = environ['wsgi.input'].read(length)
elif 'CONTENT_LENGTH' not in environ:
- body = environ['wsgi.input'].read()
- length = len(body)
+ body = ''
+ length = 0
else:
body = ''
length = 0