summaryrefslogtreecommitdiff
path: root/tests/bug-15-2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bug-15-2.sh')
-rwxr-xr-xtests/bug-15-2.sh27
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
+