Merge pull request #109 from lifei/patch-1

make sure the type of input value is int
This commit is contained in:
DoroWu 2019-04-01 10:42:11 +08:00 committed by GitHub
commit 5c9261d592
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,8 +47,8 @@ def apihealth():
def reset():
if 'w' in request.args and 'h' in request.args:
args = {
'w': request.args.get('w'),
'h': request.args.get('h'),
'w': int(request.args.get('w')),
'h': int(request.args.get('h')),
}
state.set_size(args['w'], args['h'])