From 30dea56536e78ad8a9533d51ad1d8c9c85c3c7bd Mon Sep 17 00:00:00 2001 From: Josh Steadmon Date: Wed, 6 Feb 2019 14:19:10 -0500 Subject: 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 Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- t/lib-httpd/error-smart-http.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 t/lib-httpd/error-smart-http.sh (limited to 't/lib-httpd/error-smart-http.sh') 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" -- cgit 1.2.3-korg