summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-07-19 11:36:33 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-07-19 11:36:33 +0000
commit74161c6207ea150b79dc16a4e84a432a8d8af44e (patch)
treefc904507cfdeb8750b64e0b64bd676f9f35330e1 /src
parent75303fed898cbf631f7ebf2b28e807c4d0db21a4 (diff)
Merge revision 965434 from trunk:
Fix possible bad match error - WriteFun might not return the atom 'ok'. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@965436 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_doc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_doc.erl b/src/couchdb/couch_doc.erl
index acae0c55..a6d23a91 100644
--- a/src/couchdb/couch_doc.erl
+++ b/src/couchdb/couch_doc.erl
@@ -437,7 +437,7 @@ atts_to_mp([Att | RestAtts], Boundary, WriteFun,
true ->
fun att_foldl/3
end,
- AttFun(Att, fun(Data, ok) -> WriteFun(Data) end, ok),
+ AttFun(Att, fun(Data, _) -> WriteFun(Data) end, ok),
WriteFun(<<"\r\n--", Boundary/binary>>),
atts_to_mp(RestAtts, Boundary, WriteFun, SendEncodedAtts).