Merge branch 'maint'
[gitweb.git] / t / t5551-http-fetch.sh
index c5cd2e348c6fe47af7d94ef6852757c301f8097a..47eb76921ddd53acb63573f9af75e41ab5067f5c 100755 (executable)
@@ -157,6 +157,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' '