summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2022-01-18 04:55:14 +0000
committerGitHub <noreply@github.com>2022-01-18 05:55:14 +0100
commitfac26684fd6228669a38104502a2f7b76340ebd2 (patch)
treedcfa9bb65d97a6178d29af2dfe477f44ad91e61d
parent30a01441347d5a2146af2944b29778fa0834d4be (diff)
Removed unused buf_size argument to LimitedStream().
Unused since its introduction in 269e921756371bee6d35a967bc2ffe84d1ae39eb.
-rw-r--r--django/core/handlers/wsgi.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/core/handlers/wsgi.py b/django/core/handlers/wsgi.py
index dc65f114e5..30920da6d7 100644
--- a/django/core/handlers/wsgi.py
+++ b/django/core/handlers/wsgi.py
@@ -14,11 +14,10 @@ _slashes_re = _lazy_re_compile(br'/+')
class LimitedStream:
"""Wrap another stream to disallow reading it past a number of bytes."""
- def __init__(self, stream, limit, buf_size=64 * 1024 * 1024):
+ def __init__(self, stream, limit):
self.stream = stream
self.remaining = limit
self.buffer = b''
- self.buf_size = buf_size
def _read_limited(self, size=None):
if size is None or size > self.remaining: