diff --git a/httpbin/core.py b/httpbin/core.py index efbb800..baad8f0 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -454,7 +454,7 @@ def drip(): """Drips data over a duration after an optional initial delay.""" args = CaseInsensitiveDict(request.args.items()) duration = float(args.get('duration', 2)) - numbytes = int(args.get('numbytes', 10)) + numbytes = min(int(args.get('numbytes', 10)),(10 * 1024 * 1024)) # set 10MB limit code = int(args.get('code', 200)) pause = duration / numbytes