git-commit-vandalism/t/lib-httpd/error.sh
Jeff King dbcf2bd3de t5550: test display of remote http error messages
Since commit 426e70d (remote-curl: show server content on
http errors, 2013-04-05), we relay any text/plain error
messages from the remote server to the user. However, we
never tested it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-05-23 12:43:51 -07:00

18 lines
233 B
Bash
Executable File

#!/bin/sh
printf "Status: 500 Intentional Breakage\n"
printf "Content-Type: "
case "$PATH_INFO" in
*html*)
printf "text/html"
;;
*text*)
printf "text/plain"
;;
esac
printf "\n"
printf "\n"
printf "this is the error message\n"