summaryrefslogtreecommitdiff
path: root/source4/web_server/swat
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-21 18:45:09 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-21 18:45:09 +0200
commit4141e70da97d924969b48fcd198e5996d615e75d (patch)
treeebb4ca741e3c48a37a5f26050f0e1e6a2d3d331a /source4/web_server/swat
parent1271066234fed0e5f0e28a1e75420482abd20887 (diff)
downloadsamba-4141e70da97d924969b48fcd198e5996d615e75d.tar.gz
samba-4141e70da97d924969b48fcd198e5996d615e75d.tar.bz2
samba-4141e70da97d924969b48fcd198e5996d615e75d.zip
Properly call WSGI request handler when requests come in.
Diffstat (limited to 'source4/web_server/swat')
-rw-r--r--source4/web_server/swat/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/web_server/swat/__init__.py b/source4/web_server/swat/__init__.py
index e0d85dbe2c..580097186c 100644
--- a/source4/web_server/swat/__init__.py
+++ b/source4/web_server/swat/__init__.py
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# -*- coding: utf-8 -*-
# Unix SMB/CIFS implementation.
# Copyright © Jelmer Vernooij <jelmer@samba.org> 2008
@@ -19,7 +20,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-def SWAT(environ, start_response):
+def __call__(environ, start_response):
status = '200 OK'
response_headers = [('Content-type','text/plain')]
start_response(status, response_headers)