receive-pack: do not overallocate command structure
[git/jrn.git] / t / lib-httpd / error.sh
bloba77b8e546926308fbe348bf01d625bad4996a095
1 #!/bin/sh
3 printf "Status: 500 Intentional Breakage\n"
5 printf "Content-Type: "
6 charset=iso-8859-1
7 case "$PATH_INFO" in
8 *html*)
9 printf "text/html"
11 *text*)
12 printf "text/plain"
14 *charset*)
15 printf "text/plain; charset=utf-8"
16 charset=utf-8
18 *utf16*)
19 printf "text/plain; charset=utf-16"
20 charset=utf-16
22 *odd-spacing*)
23 printf "text/plain; foo=bar ;charset=utf-16; other=nonsense"
24 charset=utf-16
26 esac
27 printf "\n"
29 printf "\n"
30 printf "this is the error message\n" |
31 iconv -f us-ascii -t $charset