You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2010/07/19 13:36:33 UTC
svn commit: r965436 - /couchdb/branches/1.0.x/src/couchdb/couch_doc.erl
Author: fdmanana
Date: Mon Jul 19 11:36:33 2010
New Revision: 965436
URL: http://svn.apache.org/viewvc?rev=965436&view=rev
Log:
Merge revision 965434 from trunk:
Fix possible bad match error - WriteFun might not return the atom 'ok'.
Modified:
couchdb/branches/1.0.x/src/couchdb/couch_doc.erl
Modified: couchdb/branches/1.0.x/src/couchdb/couch_doc.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_doc.erl?rev=965436&r1=965435&r2=965436&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_doc.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_doc.erl Mon Jul 19 11:36:33 2010
@@ -437,7 +437,7 @@ atts_to_mp([Att | RestAtts], Boundary, W
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).