t5551: test server-side ERR packet
commit30dea56536e78ad8a9533d51ad1d8c9c85c3c7bd
authorJosh Steadmon <steadmon@google.com>
Wed, 6 Feb 2019 19:19:10 +0000 (6 14:19 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Feb 2019 20:20:23 +0000 (6 12:20 -0800)
tree1fe88d737e5591d63908517b57b244d1c857d143
parentcbdb8d14392690f2e540b9efdb245871a043eb06
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>
t/lib-httpd.sh
t/lib-httpd/apache.conf
t/lib-httpd/error-smart-http.sh [new file with mode: 0644]
t/t5551-http-fetch-smart.sh