summaryrefslogtreecommitdiff
path: root/bin/service/http_server.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-07-26 12:33:36 +0300
committerP. Christeas <p_christ@hol.gr>2010-07-26 12:33:36 +0300
commitd131f6f42d3b80bde6205ed3b8d2d0cde1baf4e7 (patch)
treea58b88d16c950ff06ddc4f11db101403375e51d0 /bin/service/http_server.py
parente8b1da52ab3b90192e9c67c34b3d77664f6946a3 (diff)
HTTPd, websrv_lib: implement extendable OPTIONS handler.
For CalDAV, we need to allow the handler to fine-tune its OPTIONS response. So, better cleanup the API and allow request handlers to define their OPTIONS. bzr revid: p_christ@hol.gr-20100726093336-afzp15rys9oua4a0
Diffstat (limited to 'bin/service/http_server.py')
-rw-r--r--bin/service/http_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/service/http_server.py b/bin/service/http_server.py
index 498d6cf271b..cefca98a897 100644
--- a/bin/service/http_server.py
+++ b/bin/service/http_server.py
@@ -297,7 +297,7 @@ def init_xmlrpc():
class StaticHTTPHandler(HttpLogHandler, FixSendError, HttpOptions, HTTPHandler):
_logger = logging.getLogger('httpd')
- _HTTP_OPTIONS = 'OPTIONS GET HEAD'
+ _HTTP_OPTIONS = { 'Allow': ['OPTIONS', 'GET', 'HEAD'] }
def __init__(self,request, client_address, server):
HTTPHandler.__init__(self,request,client_address,server)