Author: fdmanana Date: Tue Nov 30 16:08:45 2010 New Revision: 1040605 URL: http://svn.apache.org/viewvc?rev=1040605&view=rev Log: Merged revision 1040603 from trunk:
Missing cases for COUCHDB-949 (adding aliases start_key and end_key). Modified: couchdb/branches/1.1.x/src/couchdb/couch_httpd_rewrite.erl Modified: couchdb/branches/1.1.x/src/couchdb/couch_httpd_rewrite.erl URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_httpd_rewrite.erl?rev=1040605&r1=1040604&r2=1040605&view=diff ============================================================================== --- couchdb/branches/1.1.x/src/couchdb/couch_httpd_rewrite.erl (original) +++ couchdb/branches/1.1.x/src/couchdb/couch_httpd_rewrite.erl Tue Nov 30 16:08:45 2010 @@ -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