-run_test 'verify gzip format' 'gunzip --test trash/test.tar.gz'
-run_test 'untar' 'tar -xf trash/test.tar.gz -C trash'
+test_expect_success 'check HTML headers (zip)' '
+ head -n 1 tmp |
+ grep "Content-Type: application/x-zip" &&
+
+ head -n 2 tmp |
+ grep "Content-Disposition: inline; filename=.master.zip."
+'
+
+test_expect_success 'strip off the header lines (zip)' '
+ tail -n +6 tmp >master.zip
+'
+
+test_expect_success 'verify zip format' '
+ unzip -t master.zip
+'
+
+test_expect_success 'unzip' '
+ rm -rf master &&
+ unzip master.zip
+'