From 54d1a8a5dc2a915f13de286973589b83bc62a75c Mon Sep 17 00:00:00 2001 From: benoitc Date: Fri, 5 Mar 2010 18:20:58 +0100 Subject: [PATCH] fix iter --- gunicorn/http/tee.py | 2 +- gunicorn/util.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn/http/tee.py b/gunicorn/http/tee.py index 57291775..08a4bd01 100644 --- a/gunicorn/http/tee.py +++ b/gunicorn/http/tee.py @@ -103,7 +103,7 @@ class TeeInput(object): if not self._tee(CHUNK_SIZE): break self.tmp.seek(orig_size) - line = self.tmp.readline() + line += self.tmp.readline() i = line.find("\n") if i != -1: break diff --git a/gunicorn/util.py b/gunicorn/util.py index 1bbf7c0b..962dec5f 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -21,7 +21,7 @@ timeout_default = object() CHUNK_SIZE = (16 * 1024) -MAX_BODY = 1024 * (80 + 32) +MAX_BODY = 1024 * 132 weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] monthname = [None,