From 18343d112207f29a87b1f5bb2da8f97afa870481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 25 Aug 2018 11:08:41 +0200 Subject: [PATCH] Donate CPU: get package --- tools/donate-cpu-server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/donate-cpu-server.py b/tools/donate-cpu-server.py index d1918ef5c..5302c0418 100644 --- a/tools/donate-cpu-server.py +++ b/tools/donate-cpu-server.py @@ -142,8 +142,8 @@ while True: elif cmd.startswith('GET /'): print('[' + strDateTime() + '] ' + cmd) package = cmd[5:] - if package.endswith(' HTTP'): - package = package[:-5] + if package.find(' ') > 0: + package = package[:package.find(' ')] filename = resultPath + '/' + package print('filename:"' + filename + '"') if not os.path.isfile(filename):