diff options
author | Robert Newson <robert.newson@cloudant.com> | 2011-11-09 13:08:49 +0000 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2011-11-09 14:30:11 -0500 |
commit | 223646af60465522572cfea014f35bfa68496d0e (patch) | |
tree | bf36944d9918bf6b4b1e6d106c1b4e5973574eb4 /apps/couch/src/couch_view.erl | |
parent | e0dd9f36cb405535708886e6451c0521a47b9fc1 (diff) |
Conditionally apply JSON encoding to update_seq values
BigCouch 0.3 cannot parse requests of the form /db/_changes?since="123-foo" so
the recent ?JSON_ENCODE addition to Since in two places causes 0.3 <-> 0.4
replication to fail with json_encode/badterm errors.
This patch applies JSON encoding only when the Since value is not already a
binary (i.e, when it's a [integer(), binary()]) and interop is restored.
BugzID: 12833
Diffstat (limited to 'apps/couch/src/couch_view.erl')
0 files changed, 0 insertions, 0 deletions