summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGraham Dumpleton <Graham.Dumpleton@gmail.com>2018-01-22 17:38:13 +0800
committerGraham Dumpleton <Graham.Dumpleton@gmail.com>2018-01-22 17:38:13 +0800
commitacea6b7a7ad0e7dc8270d6978e2a175a1acdde26 (patch)
tree583397cd32ed9eef53b88d0472f7315bcec4fb8a /tests
parent8ca7991a000e06c1b464e0f8213867fafea2a497 (diff)
downloadmod_wsgi-acea6b7a7ad0e7dc8270d6978e2a175a1acdde26.tar.gz
Add host access callback to auth test script.
Diffstat (limited to 'tests')
-rw-r--r--tests/auth.wsgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auth.wsgi b/tests/auth.wsgi
index 6d9d668..77b6eae 100644
--- a/tests/auth.wsgi
+++ b/tests/auth.wsgi
@@ -1,3 +1,7 @@
+def allow_access(environ, host):
+ print('HOST', host, environ['REQUEST_URI'])
+ return True
+
def check_password(environ, user, password):
print('USER', user, environ['REQUEST_URI'])
if user == 'spy':