Revision 032dc768 pithos/api/util.py
b/pithos/api/util.py | ||
---|---|---|
500 | 500 |
sock = raw_input_socket(request) |
501 | 501 |
if length < 0: # Chunked transfers |
502 | 502 |
# Small version (server does the dechunking). |
503 |
if request.environ.get('mod_wsgi.input_chunked', None): |
|
503 |
if request.environ.get('mod_wsgi.input_chunked', None) or request.META['SERVER_SOFTWARE'].startswith('gunicorn'):
|
|
504 | 504 |
while length < MAX_UPLOAD_SIZE: |
505 | 505 |
data = sock.read(blocksize) |
506 | 506 |
if data == '': |
Also available in: Unified diff