diff options
Diffstat (limited to 'tests/bug-15-2.sh')
-rwxr-xr-x | tests/bug-15-2.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/bug-15-2.sh b/tests/bug-15-2.sh new file mode 100755 index 00000000..371dbc80 --- /dev/null +++ b/tests/bug-15-2.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +if id weigon > /dev/null; then + echo -n +else + printf "%-40s" "userdir" + exit 77 +fi + + +test x$srcdir = x && srcdir=. + +. $srcdir/testbase.sh + +prepare_test + +cat > $TMPFILE <<EOF +userdir for ~weigon + redirect +GET /~weigon HTTP/1.0 +Host: www.example.org + +Status: 301 +Location: http://www.example.org/~weigon/ +EOF + +run_test + |