Mercurial > templog
diff server/ts.py @ 29:048143905092
work on web interface
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 12 Jun 2012 23:27:53 +0800 |
parents | e3e0ed7758f9 |
children | e18d7e89c17d |
line wrap: on
line diff
--- a/server/ts.py Tue Jun 12 00:35:23 2012 +0800 +++ b/server/ts.py Tue Jun 12 23:27:53 2012 +0800 @@ -110,7 +110,7 @@ return int(next_wake) def send_results(lines): - enc_lines = binascii.b2a_base64('\n'.join(lines)) + enc_lines = binascii.b2a_base64(zlib.compress('\n'.join(lines))) hmac.new(config.HMAC_KEY, enc_lines).hexdigest() url_data = urllib.url_encode( ('lines', enc_lines), ('hmac', mac) )