summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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