Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1372C10DBD for ; Fri, 16 Oct 2015 11:27:40 +0000 (UTC) Received: (qmail 22655 invoked by uid 500); 16 Oct 2015 11:27:40 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 22608 invoked by uid 500); 16 Oct 2015 11:27:39 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 22599 invoked by uid 99); 16 Oct 2015 11:27:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 11:27:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C8385DFBD2; Fri, 16 Oct 2015 11:27:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kxepal@apache.org To: commits@couchdb.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: chttpd commit: updated refs/heads/master to 5482209 Date: Fri, 16 Oct 2015 11:27:39 +0000 (UTC) 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 Authored: Thu Oct 15 23:17:41 2015 +0300 Committer: Alexander Shorin 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),