diff options
| author | Ian Bicking <ian@ianbicking.org> | 2007-04-25 21:17:17 +0000 |
|---|---|---|
| committer | Ian Bicking <ian@ianbicking.org> | 2007-04-25 21:17:17 +0000 |
| commit | c3442ea89ea5638dccc6691beb91f4cc2170e2e6 (patch) | |
| tree | 2243159fe1be75473ea557c1c5460b60618d39bc /paste/proxy.py | |
| parent | 12a7b7611aa8fe1c211f21fe379ee7e4a92a8ad5 (diff) | |
| download | paste-git-c3442ea89ea5638dccc6691beb91f4cc2170e2e6.tar.gz | |
Treat missing Content-Length as 0, not unlimited
Diffstat (limited to 'paste/proxy.py')
| -rw-r--r-- | paste/proxy.py | 4 |
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 |
