null+****@clear*****
null+****@clear*****
2012年 8月 2日 (木) 13:33:10 JST
SHIMODA Hiroshi 2012-08-02 13:33:10 +0900 (Thu, 02 Aug 2012) New Revision: ebaf6f0fae997be9c97595777bf39eef58269fc8 https://github.com/groonga/gcs/commit/ebaf6f0fae997be9c97595777bf39eef58269fc8 Log: Fix missing "." between subdomain and the main domain Modified files: lib/database/domain.js Modified: lib/database/domain.js (+4 -0) =================================================================== --- lib/database/domain.js 2012-08-02 13:31:47 +0900 (15d4f2a) +++ lib/database/domain.js 2012-08-02 13:33:10 +0900 (77a1508) @@ -203,9 +203,13 @@ Domain.prototype = { }, getDocumentsEndpoint: function(hostname) { + if (hostname.charAt(0) != '.') + hostname = '.' + hostaname; return 'doc-' + this.name + '-' + this.id + hostname; }, getSearchEndpoint: function(hostname) { + if (hostname.charAt(0) != '.') + hostname = '.' + hostaname; return 'search-' + this.name + '-' + this.id + hostname; }, -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Download