diff options
author | Robert Newson <robert.newson@cloudant.com> | 2011-11-09 13:08:49 +0000 |
---|---|---|
committer | Robert Newson <robert.newson@cloudant.com> | 2011-11-09 14:47:39 +0000 |
commit | 6ad4258c2f2ca158ae311931d348941e74f01b89 (patch) | |
tree | 4b102373cc25ca231f3d027c4e5a5f0f03e35ef6 /apps/couch/src/couch_app.erl | |
parent | 4216ca260c305ea3b39b2a45a8dd2e6d5cdb529f (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_app.erl')
0 files changed, 0 insertions, 0 deletions