These are chat archives for cherrypy/cherrypy

Apr 2018
seems like doesn't like when I post compressed json data
but json.loads(zlib.decompress( works fine
Jason R. Coombs
Apr 25 2018 18:55 UTC
@dddh: That sounds right. I wouldn’t expect it to magically decompress request bodies.
that data was posted using:, data=zlib.compress(json.dumps(JSON).encode('utf-8'), zlib.Z_BEST_COMPRESSION), headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json'})
doesn't matter if it works any other way of course