Support HTTP/1.1 to make android caldav sync happy
authorKeith Packard <keithp@keithp.com>
Wed, 10 Apr 2013 08:26:19 +0000 (01:26 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 10 Apr 2013 08:26:19 +0000 (01:26 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
calypso/__init__.py

index 5d272485d5330e865fed89665952fb0f558ed96f..407abe3c9078a50ef081d05ae9457fe6f4b72500 100644 (file)
@@ -137,6 +137,10 @@ class CollectionHTTPHandler(server.BaseHTTPRequestHandler):
     # Decorator checking rights before performing request
     check_rights = lambda function: lambda request: _check(request, function)
         
+    # We do set Content-Length on all replies, so we can use HTTP/1.1
+    # with multiple requests (as desired by the android CalDAV sync program
+    protocol_version = 'HTTP/1.1'
+
     def address_string(self):
         return str(self.client_address[0])