17 assert body[0:2] ==
"\x1f\x8b" 18 method, flags, mtime = struct.unpack(
"<BBIxx", body[2:10])
28 size, = struct.unpack(
"<H", body[i:i+2])
31 def skip_until_zero(ix):
32 while body[ix] !=
'\x00': ix += 1
35 if flags & FNAME: i = skip_until_zero(i)
36 if flags & FCOMMENT: i = skip_until_zero(i)
37 if flags & FHCRC: i += 2
def strip_gzip_header(body)