aboutsummaryrefslogtreecommitdiff
path: root/t/lib-httpd/broken-smart-http.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-02-10 20:35:23 -0800
committerJunio C Hamano <gitster@pobox.com>2013-02-10 20:35:23 -0800
commit271cd23527c851ec5dd31a8603a8b25f936eb9e1 (patch)
tree9a90a3545a77c50ce8d58c10ce4f203b227f225f /t/lib-httpd/broken-smart-http.sh
parentb3310b5e2f576ef807f90eab0e6e178b65bbfb55 (diff)
parent3443db51a0f2a43061d4badc6a0065672386eae5 (diff)
downloadgit-271cd23527c851ec5dd31a8603a8b25f936eb9e1.tar.gz
git-271cd23527c851ec5dd31a8603a8b25f936eb9e1.tar.xz
Merge branch 'sp/smart-http-content-type-check'
The smart HTTP clients forgot to verify the content-type that comes back from the server side to make sure that the request is being handled properly. * sp/smart-http-content-type-check: http_request: reset "type" strbuf before adding t5551: fix expected error output Verify Content-Type from smart HTTP servers
Diffstat (limited to 't/lib-httpd/broken-smart-http.sh')
-rwxr-xr-xt/lib-httpd/broken-smart-http.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/lib-httpd/broken-smart-http.sh b/t/lib-httpd/broken-smart-http.sh
new file mode 100755
index 000000000..f7ebfffa8
--- /dev/null
+++ b/t/lib-httpd/broken-smart-http.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+printf "Content-Type: text/%s\n" "html"
+echo
+printf "%s\n" "001e# service=git-upload-pack"
+printf "%s" "0000"
+printf "%s%c%s%s\n" \
+ "00a58681d9f286a48b08f37b3a095330da16689e3693 HEAD" \
+ 0 \
+ " include-tag multi_ack_detailed multi_ack ofs-delta" \
+ " side-band side-band-64k thin-pack no-progress shallow no-done "
+printf "%s" "0000"