projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
96bfb22
)
Merge branch 'master' of https://code.grnet.gr/git/pithos
author
Sofia Papagiannaki
<papagian@gmail.com>
Tue, 18 Oct 2011 11:53:52 +0000
(14:53 +0300)
committer
Sofia Papagiannaki
<papagian@gmail.com>
Tue, 18 Oct 2011 11:53:52 +0000
(14:53 +0300)
pithos/api/util.py
patch
|
blob
|
history
diff --git
a/pithos/api/util.py
b/pithos/api/util.py
index
09d09ca
..
d21e237
100644
(file)
--- a/
pithos/api/util.py
+++ b/
pithos/api/util.py
@@
-500,7
+500,7
@@
def socket_read_iterator(request, length=0, blocksize=4096):
sock = raw_input_socket(request)
if length < 0: # Chunked transfers
# Small version (server does the dechunking).
- if request.environ.get('mod_wsgi.input_chunked', None):
+ if request.environ.get('mod_wsgi.input_chunked', None) or request.META['SERVER_SOFTWARE'].startswith('gunicorn'):
while length < MAX_UPLOAD_SIZE:
data = sock.read(blocksize)
if data == '':