Merge branch 'dd/iso-8601-updates'
[git] / t / lib-httpd / error.sh
CommitLineData
dbcf2bd3
JK
1#!/bin/sh
2
3printf "Status: 500 Intentional Breakage\n"
4
5printf "Content-Type: "
bf197fd7 6charset=iso-8859-1
dbcf2bd3
JK
7case "$PATH_INFO" in
8*html*)
9 printf "text/html"
10 ;;
11*text*)
12 printf "text/plain"
13 ;;
bf197fd7
JK
14*charset*)
15 printf "text/plain; charset=utf-8"
16 charset=utf-8
17 ;;
fc1b774c
JK
18*utf16*)
19 printf "text/plain; charset=utf-16"
20 charset=utf-16
21 ;;
f34a655d
YE
22*odd-spacing*)
23 printf "text/plain; foo=bar ;charset=utf-16; other=nonsense"
24 charset=utf-16
25 ;;
dbcf2bd3
JK
26esac
27printf "\n"
28
29printf "\n"
bf197fd7
JK
30printf "this is the error message\n" |
31iconv -f us-ascii -t $charset