summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2019-07-11 15:03:12 -0500
committerPaul J. Davis <paul.joseph.davis@gmail.com>2019-07-31 11:55:30 -0500
commitbf9fa0acb4a9a1c9921c0453bff025abe38b5b24 (patch)
tree2c61adad5956bcebecd5225f0a999c0e08415772
parent633d894a3cdf140847d7dc5c4fb9b9fe4baf72de (diff)
downloadcouchdb-bf9fa0acb4a9a1c9921c0453bff025abe38b5b24.tar.gz
Fix `COPY` method
Simple function change to `fabric2_db:name/1`
-rw-r--r--src/chttpd/src/chttpd_db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chttpd/src/chttpd_db.erl b/src/chttpd/src/chttpd_db.erl
index abdd825f9..a25204134 100644
--- a/src/chttpd/src/chttpd_db.erl
+++ b/src/chttpd/src/chttpd_db.erl
@@ -1180,7 +1180,7 @@ db_doc_req(#httpd{method='COPY', user_ctx=Ctx}=Req, Db, SourceDocId) ->
HttpCode = 202
end,
% respond
- DbName = couch_db:name(Db),
+ DbName = fabric2_db:name(Db),
{PartRes} = update_doc_result_to_json(TargetDocId, {ok, NewTargetRev}),
Loc = absolute_uri(Req, "/" ++ couch_util:url_encode(DbName) ++ "/" ++ couch_util:url_encode(TargetDocId)),
send_json(Req, HttpCode,