summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2011-10-18 08:35:07 -0700
committerAdam Kocoloski <adam@cloudant.com>2011-10-18 08:35:07 -0700
commitdf394dd313aaa5ee1cf0940ba376cf2f61241051 (patch)
tree755277b08cef9d5a815541ee1874ffee87b924cb /apps
parent04ca9674ee94fbdf687a1d124f8b7f9be828294e (diff)
parent9c1d6798e56d95a9ec6ad36c7baf7c3d23ce5eff (diff)
Merge pull request #76 from cloudant/12741-replication-seq-format
Diffstat (limited to 'apps')
-rw-r--r--apps/couch/src/couch_rep.erl2
-rw-r--r--apps/couch/src/couch_rep_changes_feed.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/couch/src/couch_rep.erl b/apps/couch/src/couch_rep.erl
index 46bcb282..8f2508f5 100644
--- a/apps/couch/src/couch_rep.erl
+++ b/apps/couch/src/couch_rep.erl
@@ -834,7 +834,7 @@ ensure_full_commit(#http_db{headers = Headers} = Source, RequiredSeq) ->
Req = Source#http_db{
resource = "_ensure_full_commit",
method = post,
- qs = [{seq, RequiredSeq}],
+ qs = [{seq, iolist_to_binary(?JSON_ENCODE(RequiredSeq))}],
headers = Headers1
},
{ResultProps} = couch_rep_httpc:request(Req),
diff --git a/apps/couch/src/couch_rep_changes_feed.erl b/apps/couch/src/couch_rep_changes_feed.erl
index 7a9573d6..70db52a0 100644
--- a/apps/couch/src/couch_rep_changes_feed.erl
+++ b/apps/couch/src/couch_rep_changes_feed.erl
@@ -64,7 +64,7 @@ init([Parent, #http_db{headers = Headers0} = Source, Since, PostProps]) ->
BaseQS = [
{"style", all_docs},
{"heartbeat", 10000},
- {"since", Since},
+ {"since", iolist_to_binary(?JSON_ENCODE(Since))},
{"feed", Feed}
],
{QS, Method, Body, Headers} = case get_value(<<"doc_ids">>, PostProps) of