correctly process arguments for bench server

This commit is contained in:
Mikhail Korobov 2016-01-21 18:44:37 +05:00
parent 80c55f19a1
commit a18dc24471
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ class Root(Resource):
return self
def render(self, request):
total = _getarg(request, 'total', 100, int)
show = _getarg(request, 'show', 10, int)
total = _getarg(request, b'total', 100, int)
show = _getarg(request, b'show', 10, int)
nlist = [random.randint(1, total) for _ in range(show)]
request.write(b"<html><head></head><body>")
args = request.args.copy()