add gzip demo code, and fix the dept_cdoe exception