diff options
author | Robert Newson <robert.newson@cloudant.com> | 2012-01-31 16:59:28 -0500 |
---|---|---|
committer | Robert Newson <robert.newson@cloudant.com> | 2012-01-31 16:59:28 -0500 |
commit | db23528537fed7b9b0e85d3f3617f560cb52d630 (patch) | |
tree | 1989cbebc96879affe562f68a360ccd529e8faed /apps/couch/src | |
parent | f199c336b304b1a9abc03d6898b10dafb7a17ad6 (diff) |
Fix previous commit
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), |