Staging
v0.5.2
https://github.com/git/git
Raw File
Tip revision: 8e36a6d5752ced382ecd46a5f2cd94276f79451c authored by Junio C Hamano on 17 December 2014, 19:44:59 UTC
Git 2.1.4
Tip revision: 8e36a6d
error.sh
#!/bin/sh

printf "Status: 500 Intentional Breakage\n"

printf "Content-Type: "
charset=iso-8859-1
case "$PATH_INFO" in
*html*)
	printf "text/html"
	;;
*text*)
	printf "text/plain"
	;;
*charset*)
	printf "text/plain; charset=utf-8"
	charset=utf-8
	;;
*utf16*)
	printf "text/plain; charset=utf-16"
	charset=utf-16
	;;
*odd-spacing*)
	printf "text/plain; foo=bar ;charset=utf-16; other=nonsense"
	charset=utf-16
	;;
esac
printf "\n"

printf "\n"
printf "this is the error message\n" |
iconv -f us-ascii -t $charset
back to top