Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/lib-httpd/error.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / lib-httpd / error.sh` 31 lines ยท 513 bytes Raw Blame History 1 #!/bin/sh 2 3 printf "Status: 500 Intentional Breakage\n" 4 5 printf "Content-Type: " 6 charset=iso-8859-1 7 case "$PATH_INFO" in 8 *html*) 9 printf "text/html" 10 ;; 11 *text*) 12 printf "text/plain" 13 ;; 14 *charset*) 15 printf "text/plain; charset=utf-8" 16 charset=utf-8 17 ;; 18 *utf16*) 19 printf "text/plain; charset=utf-16" 20 charset=utf-16 21 ;; 22 *odd-spacing*) 23 printf "text/plain; foo=bar ;charset=utf-16; other=nonsense" 24 charset=utf-16 25 ;; 26 esac 27 printf "\n" 28 29 printf "\n" 30 printf "this is the error message\n" | 31 iconv -f us-ascii -t $charset