summaryrefslogtreecommitdiff
path: root/paste/proxy.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2009-03-06 00:30:21 +0000
committerianb <devnull@localhost>2009-03-06 00:30:21 +0000
commit41a267e59bfaad6ed867f37b417edcadf069ec98 (patch)
tree6e632b995c8559852b23264de9a4de0e96b1d22a /paste/proxy.py
parent832e1603db91bf42c83c4a7351ffdc3265ffb1a0 (diff)
downloadpaste-41a267e59bfaad6ed867f37b417edcadf069ec98.tar.gz
fix another CONTENT_LENGTH=-1 place
Diffstat (limited to 'paste/proxy.py')
-rw-r--r--paste/proxy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/paste/proxy.py b/paste/proxy.py
index cb29c54..155128f 100644
--- a/paste/proxy.py
+++ b/paste/proxy.py
@@ -216,6 +216,8 @@ class TransparentProxy(object):
if environ.get('CONTENT_LENGTH'):
length = int(environ['CONTENT_LENGTH'])
body = environ['wsgi.input'].read(length)
+ if length == -1:
+ environ['CONTENT_LENGTH'] = str(len(body))
elif 'CONTENT_LENGTH' not in environ:
body = ''
length = 0