diff options
Diffstat (limited to 'apps/couch/src')
-rw-r--r-- | apps/couch/src/couch_rep_writer.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/couch/src/couch_rep_writer.erl b/apps/couch/src/couch_rep_writer.erl index 6f557107..cea4408e 100644 --- a/apps/couch/src/couch_rep_writer.erl +++ b/apps/couch/src/couch_rep_writer.erl @@ -128,7 +128,7 @@ write_multi_part_doc(#http_db{headers=Headers} = Db, #doc{atts=Atts} = Doc) -> }, Conn = couch_rep_httpc:spawn_link_worker_process(Request), Result = try - case couch_rep_httpc:request(Request) of + case couch_rep_httpc:request(Request#http_db{conn=Conn}) of {[{<<"error">>, Error}, {<<"reason">>, Reason}]} -> {Pos, [RevId | _]} = Doc#doc.revs, ErrId = couch_util:to_existing_atom(Error), |