couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couch-stats commit: updated refs/heads/master to ef5cd7b
Date Fri, 29 Aug 2014 22:12:10 GMT
Repository: couchdb-couch-stats
Updated Branches:
  refs/heads/master ebb4f633f -> ef5cd7b7f


support numeric keys


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-stats/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-stats/commit/ef5cd7b7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-stats/tree/ef5cd7b7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-stats/diff/ef5cd7b7

Branch: refs/heads/master
Commit: ef5cd7b7f400d2bf1834869bd7e2921dbb44066d
Parents: ebb4f63
Author: Robert Newson <rnewson@apache.org>
Authored: Fri Aug 29 23:12:03 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Fri Aug 29 23:12:03 2014 +0100

----------------------------------------------------------------------
 src/couch_stats_httpd.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-stats/blob/ef5cd7b7/src/couch_stats_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couch_stats_httpd.erl b/src/couch_stats_httpd.erl
index bd9a5b3..ab8b851 100644
--- a/src/couch_stats_httpd.erl
+++ b/src/couch_stats_httpd.erl
@@ -94,6 +94,8 @@ maybe_format_key(Key) when is_list(Key) ->
     list_to_binary(Key);
 maybe_format_key(Key) when is_atom(Key) ->
     list_to_binary(atom_to_list(Key));
+maybe_format_key(Key) when is_integer(Key) ->
+    list_to_binary(integer_to_list(Key));
 maybe_format_key(Key) when is_binary(Key) ->
     Key.
 


Mime
View raw message