headers['Content-Type'] should not be a tuple

but a string. At least davical complains about wrong mime-type.
This commit is contained in:
Christian Geier 2014-04-01 00:47:13 +02:00
parent f8fa914358
commit ffd73ff120

View file

@ -161,7 +161,7 @@ class DavStorage(HttpStorageBase):
def _put(self, href, obj, etag):
headers = self._default_headers()
headers['Content-Type'] = self.item_mimetype,
headers['Content-Type'] = self.item_mimetype
if etag is None:
headers['If-None-Match'] = '*'
else: