I thought the tag was Content-transfer-encoding but I'm not sure and don't feel like looking it up right now. You -could- find the apache mod_gzip module linked from apache.org and compare it to your cgi.