summaryrefslogtreecommitdiff
path: root/paste/proxy.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2007-04-25 21:17:17 +0000
committerianb <devnull@localhost>2007-04-25 21:17:17 +0000
commitbf36d220557ee3341b51945234948f437afdd336 (patch)
tree2243159fe1be75473ea557c1c5460b60618d39bc /paste/proxy.py
parent71848c27519d8f0df50de8526c7812d2bdf33509 (diff)
downloadpaste-bf36d220557ee3341b51945234948f437afdd336.tar.gz
Treat missing Content-Length as 0, not unlimited
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