Merge branch 'jc/push-2.0-default-to-simple' (early part)
[gitweb.git] / t / t5551-http-fetch.sh
index 1b5508667f88886d0a2af5ff446673cd3f03c423..f0f313fb7cba3ff57a327bf96dad32dc55f77b72 100755 (executable)
@@ -158,6 +158,11 @@ test_expect_success 'GIT_SMART_HTTP can disable smart http' '
         test_must_fail git fetch)
 '
 
+test_expect_success 'invalid Content-Type rejected' '
+       test_must_fail git clone $HTTPD_URL/broken_smart/repo.git 2>actual
+       grep "not valid:" actual
+'
+
 test -n "$GIT_TEST_LONG" && test_set_prereq EXPENSIVE
 
 test_expect_success EXPENSIVE 'create 50,000 tags in the repo' '