From d5a318bfe1749bdca8bd1db3a69fc5c13503701d Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Mon, 5 Oct 2015 17:44:09 +0200 Subject: [PATCH] better do the uncompress on the server --- db/alfred.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/db/alfred.py b/db/alfred.py index a52c5ad..23c88a4 100755 --- a/db/alfred.py +++ b/db/alfred.py @@ -93,14 +93,6 @@ def request_data(data_type): assert len(payload) == data_length res_length -= data_length - try: - payload = gzip.decompress(payload) - except: - pass - - # decode string (expect unicode) - payload = payload.decode("UTF-8", errors="replace") - if mac in response: response[mac] += payload else: