git.samba.org
/
jelmer
/
calypso.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0155fcf
)
Support HTTP/1.1 to make android caldav sync happy
author
Keith Packard
<keithp@keithp.com>
Wed, 10 Apr 2013 08:26:19 +0000
(
01:26
-0700)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/calypso/__init__.py
b/calypso/__init__.py
index 5d272485d5330e865fed89665952fb0f558ed96f..407abe3c9078a50ef081d05ae9457fe6f4b72500 100644
(file)
--- a/
calypso/__init__.py
+++ b/
calypso/__init__.py
@@
-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])