Browse Source
Since commit 426e70d
(remote-curl: show server content on
http errors, 2013-04-05), we relay any text/plain error
messages from the remote server to the user. However, we
never tested it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Jeff King
11 years ago
committed by
Junio C Hamano
4 changed files with 32 additions and 0 deletions
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh |
||||
|
||||
printf "Status: 500 Intentional Breakage\n" |
||||
|
||||
printf "Content-Type: " |
||||
case "$PATH_INFO" in |
||||
*html*) |
||||
printf "text/html" |
||||
;; |
||||
*text*) |
||||
printf "text/plain" |
||||
;; |
||||
esac |
||||
printf "\n" |
||||
|
||||
printf "\n" |
||||
printf "this is the error message\n" |
Loading…
Reference in new issue