Merge branch 'ew/doc-split-pack-disables-bitmap'
[gitweb.git] / t / t5551-http-fetch-smart.sh
index 58207d88250f57d448f4e83baf2add3192cb9455..e44fe72c7aa4d670a6796a5c342e8e131fac6a8d 100755 (executable)
@@ -282,5 +282,12 @@ test_expect_success EXPENSIVE 'http can handle enormous ref negotiation' '
        test_line_count = 100000 tags
 '
 
+test_expect_success 'custom http headers' '
+       test_must_fail git fetch "$HTTPD_URL/smart_headers/repo.git" &&
+       git -c http.extraheader="x-magic-one: abra" \
+           -c http.extraheader="x-magic-two: cadabra" \
+           fetch "$HTTPD_URL/smart_headers/repo.git"
+'
+
 stop_httpd
 test_done