anchor.diff:      W = chttpd:qs_value(Req, "w", integer_to_list(mem3:quorum(Db))),
       Options = [{user_ctx,Ctx}, {w,W}],
   
  -    Loc = absolute_uri(Req, [$/, Db#db.name, $/, couch_util:url_encode(DocId)]),
  +    Loc = absolute_uri(Req, [$/, couch_util:url_encode(Db#db.name),
  +        $/, couch_util:url_encode(DocId)]),
       RespHeaders = [{"Location", Loc}],
       case couch_util:to_list(couch_httpd:header_value(Req, "Content-Type")) of
       ("multipart/related;" ++ _) = ContentType ->
  
positive.code:     end,
      % respond
      {PartRes} = update_doc_result_to_json(TargetDocId, {ok, NewTargetRev}),
      send_json(Req, HttpCode,
          [{"Etag", "\"" ++ ?b2l(couch_doc:rev_to_str(NewTargetRev)) ++ "\""}],
          {[{ok, true}] ++ PartRes});
  
  db_doc_req(Req, _Db, _DocId) ->
  
negative.code:         ]});
      _Normal ->
          % normal
          DocUrl = absolute_uri(Req, [$/, couch_util:url_encode(DbName),
              $/, couch_util:url_encode(DocId)]),
          case fabric:update_doc(Db, Doc2, Options) of
          {ok, NewRev} ->
              HttpCode = 201;
  