Squashed 'third_party/git/' content from commit cb71568594
git-subtree-dir: third_party/git git-subtree-split: cb715685942260375e1eb8153b0768a376e4ece7
This commit is contained in:
commit
1b593e1ea4
3629 changed files with 1139935 additions and 0 deletions
31
t/lib-httpd/error.sh
Executable file
31
t/lib-httpd/error.sh
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue