refactor SPDY zlib handling