Skip to content

Commit 4c9f791

Browse files
committed
Fixed the write_multipart docstring to include the new Content-MD5 header.
--HG-- extra : convert_revision : svn%3A7a298fb0-333a-0410-83e7-658617cd9cf3/trunk%40169
1 parent 8672f17 commit 4c9f791

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

couchdb/multipart.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def write_multipart(fileobj, subtype='mixed', boundary=None):
195195
<BLANKLINE>
196196
--==123456789==
197197
Content-Length: 12
198+
Content-MD5: nHmX4a6el41B06x2uCpglQ==
198199
Content-Type: text/plain
199200
<BLANKLINE>
200201
Just testing
@@ -214,14 +215,15 @@ def write_multipart(fileobj, subtype='mixed', boundary=None):
214215
>>> part.add('text/plain', 'Just testing')
215216
>>> part.close()
216217
>>> envelope.close()
217-
>>> print buf.getvalue().replace('\r\n', '\n')
218+
>>> print buf.getvalue().replace('\r\n', '\n') #:doctest +ELLIPSIS
218219
Content-Type: multipart/mixed; boundary="==123456789=="
219220
<BLANKLINE>
220221
--==123456789==
221222
Content-Type: multipart/mixed; boundary="==abcdefghi=="
222223
<BLANKLINE>
223224
--==abcdefghi==
224225
Content-Length: 12
226+
Content-MD5: nHmX4a6el41B06x2uCpglQ==
225227
Content-Type: text/plain
226228
<BLANKLINE>
227229
Just testing

0 commit comments

Comments
 (0)