From 74161c6207ea150b79dc16a4e84a432a8d8af44e Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Mon, 19 Jul 2010 11:36:33 +0000 Subject: 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 --- src/couchdb/couch_doc.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb/couch_doc.erl') 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). -- cgit v1.2.3