mirror of https://github.com/scrapy/scrapy.git
correctly process arguments for bench server
This commit is contained in:
parent
80c55f19a1
commit
a18dc24471
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue