couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject chttpd commit: updated refs/heads/master to 5482209
Date Fri, 16 Oct 2015 11:27:39 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master c3fcf881f -> 548220901


Use new couch_httpd_multipart API


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/54822090
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/54822090
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/54822090

Branch: refs/heads/master
Commit: 5482209016f4016cb0a8f204088acf85f1057812
Parents: c3fcf88
Author: Alexander Shorin <kxepal@apache.org>
Authored: Thu Oct 15 23:17:41 2015 +0300
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Thu Oct 15 23:17:41 2015 +0300

----------------------------------------------------------------------
 src/chttpd_db.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/54822090/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index fe50b75..65d21ea 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -759,7 +759,7 @@ db_doc_req(#httpd{method='PUT', user_ctx=Ctx}=Req, Db, DocId) ->
     RespHeaders = [{"Location", Loc}],
     case couch_util:to_list(couch_httpd:header_value(Req, "Content-Type")) of
     ("multipart/related;" ++ _) = ContentType ->
-        couch_doc:num_mp_writers(mem3:n(mem3:dbname(Db#db.name), DocId)),
+        couch_httpd_multipart:num_mp_writers(mem3:n(mem3:dbname(Db#db.name), DocId)),
         {ok, Doc0, WaitFun, Parser} = couch_doc:doc_from_multi_part_stream(ContentType,
                 fun() -> receive_request_data(Req) end),
         Doc = couch_doc_from_req(Req, DocId, Doc0),


Mime
View raw message