diff options
author | Josh Steadmon <steadmon@google.com> | 2019-02-06 14:19:10 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-06 12:20:23 -0800 |
commit | 30dea56536e78ad8a9533d51ad1d8c9c85c3c7bd (patch) | |
tree | 1fe88d737e5591d63908517b57b244d1c857d143 /t/lib-httpd/error-smart-http.sh | |
parent | remote-curl: tighten "version 2" check for smart-http (diff) | |
download | tgif-30dea56536e78ad8a9533d51ad1d8c9c85c3c7bd.tar.xz |
t5551: test server-side ERR packet
When a smart HTTP server sends an error message via pkt-line, we detect
the error due to using PACKET_READ_DIE_ON_ERR_PACKET. This case was
added by 2d103c31c2 (pack-protocol.txt: accept error packets in any
context, 2018-12-29), but not covered by tests.
Signed-off-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-httpd/error-smart-http.sh')
-rw-r--r-- | t/lib-httpd/error-smart-http.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/lib-httpd/error-smart-http.sh b/t/lib-httpd/error-smart-http.sh new file mode 100644 index 0000000000..e65d447fc4 --- /dev/null +++ b/t/lib-httpd/error-smart-http.sh @@ -0,0 +1,3 @@ +echo "Content-Type: application/x-git-upload-pack-advertisement" +echo +printf "%s" "0019ERR server-side error" |