rewinding a stream caused gzip breakage (rev. 17_b14)

Signed-off-by: nixnodes <code@eth.si>