From c3442ea89ea5638dccc6691beb91f4cc2170e2e6 Mon Sep 17 00:00:00 2001 From: Ian Bicking Date: Wed, 25 Apr 2007 21:17:17 +0000 Subject: Treat missing Content-Length as 0, not unlimited --- paste/proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'paste/proxy.py') 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 -- cgit v1.2.1