Skip to content
Browse files

Merge pull request #76 from cloudant/12741-replication-seq-format

  • Loading branch information...
2 parents 04ca967 + 9c1d679 commit df394dd313aaa5ee1cf0940ba376cf2f61241051 @kocolosk kocolosk committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 apps/couch/src/couch_rep.erl
  2. +1 −1 apps/couch/src/couch_rep_changes_feed.erl
View
2 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),
View
2 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

0 comments on commit df394dd

Please sign in to comment.
Something went wrong with that request. Please try again.