Skip to content

Commit c978d8e

Browse files
committed
_ensure_full_commit now needs application/json content type header too.
1 parent cada556 commit c978d8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

couchdb/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ def commit(self):
417417
immediate commits, this method can be used to ensure that any
418418
non-committed changes are committed to physical storage.
419419
"""
420-
_, _, data = self.resource.post_json('_ensure_full_commit')
420+
_, _, data = self.resource.post_json(
421+
'_ensure_full_commit',
422+
headers={'Content-Type': 'application/json'})
421423
return data
422424

423425
def compact(self, ddoc=None):

0 commit comments

Comments
 (0)