couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r965436 - /couchdb/branches/1.0.x/src/couchdb/couch_doc.erl
Date Mon, 19 Jul 2010 11:36:33 GMT
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).
 



Mime
View raw message