Navigation Menu

Skip to content

Commit

Permalink
Fix missing "." between subdomain and the main domain
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 2, 2012
1 parent 5d84cfa commit ebaf6f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/database/domain.js
Expand Up @@ -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;
},

Expand Down

0 comments on commit ebaf6f0

Please sign in to comment.