try:
rbody = req.input.read(2 ** 20)
except IOError as exc:
return exc
if len(rbody) >= 2 ** 20:
return ValueError("x-www-form-urlencoded data is absurdly long")
try:
rbody = req.input.read(2 ** 20)
except IOError as exc:
return exc
if len(rbody) >= 2 ** 20:
return ValueError("x-www-form-urlencoded data is absurdly long")