summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-11-30 16:08:45 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-11-30 16:08:45 +0000
commitd49860d74611bca94a47ca1ca20dc936cd6aa436 (patch)
treec4ed8f51e4f7380995dc60647a84b492c06dd3c5 /src
parent0674772975ee1748712837a615e795f2aa3372c0 (diff)
Merged revision 1040603 from trunk:
Missing cases for COUCHDB-949 (adding aliases start_key and end_key). git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1040605 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd_rewrite.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd_rewrite.erl b/src/couchdb/couch_httpd_rewrite.erl
index 36b90928..893f99ed 100644
--- a/src/couchdb/couch_httpd_rewrite.erl
+++ b/src/couchdb/couch_httpd_rewrite.erl
@@ -279,7 +279,9 @@ replace_var(Key, Value, Bindings) ->
case Key of
<<"key">> -> to_json(Value);
<<"startkey">> -> to_json(Value);
+ <<"start_key">> -> to_json(Value);
<<"endkey">> -> to_json(Value);
+ <<"end_key">> -> to_json(Value);
_ ->
lists:flatten(?JSON_ENCODE(Value))
end