1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-05 16:12:41 +02:00

make sure the type of input value is int

This commit is contained in:
软件工程师李飛
2019-03-31 05:35:51 +08:00
committed by GitHub
parent 68887af903
commit 2280e040d0
+2 -2
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'])