summaryrefslogtreecommitdiff
path: root/src/leap/soledad/common/couch
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/soledad/common/couch')
-rw-r--r--src/leap/soledad/common/couch/support.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/soledad/common/couch/support.py b/src/leap/soledad/common/couch/support.py
index bfc4fef6..98000dc9 100644
--- a/src/leap/soledad/common/couch/support.py
+++ b/src/leap/soledad/common/couch/support.py
@@ -49,13 +49,14 @@ class MultipartWriter(object):
self._boundary = boundary
self._build_headers('related', headers)
- def add(self, mimetype, content, headers={}):
+ def add(self, mimetype, content, headers=None):
"""
Add a part to the multipart stream.
"""
self.fileobj.write('--')
self.fileobj.write(self._boundary)
self.fileobj.write(self.CRLF)
+ headers = headers or {}
headers['Content-Type'] = mimetype
self._write_headers(headers)
if content: