lighttpd1.4/tests/bug-15-2.sh

28 lines
351 B
Bash
Executable File

#!/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