Do not force ending dot in SQL-API hostname, for easier testing
This commit is contained in:
parent
428e8631e2
commit
12f0826d32
1
NEWS.md
1
NEWS.md
@ -4,6 +4,7 @@
|
|||||||
* Add support for specifying database connection passwords
|
* Add support for specifying database connection passwords
|
||||||
* Add support for reading user-specific database_host from redis,
|
* Add support for reading user-specific database_host from redis,
|
||||||
as per CartoDB-2.5.0 model (#88)
|
as per CartoDB-2.5.0 model (#88)
|
||||||
|
* Do not force ending dot in SQL-API hostname, for easier testing
|
||||||
|
|
||||||
1.4.1 -- 2013-11-08
|
1.4.1 -- 2013-11-08
|
||||||
-------------------
|
-------------------
|
||||||
|
@ -67,7 +67,9 @@ module.exports = function(){
|
|||||||
var api = global.environment.sqlapi;
|
var api = global.environment.sqlapi;
|
||||||
|
|
||||||
// build up api string
|
// build up api string
|
||||||
var sqlapi = api.protocol + '://' + username + '.' + api.domain + ':' + api.port + '/api/' + api.version + '/sql'
|
var sqlapi = api.protocol + '://' + username;
|
||||||
|
if ( api.domain ) sqlapi += '.' + api.domain;
|
||||||
|
sqlapi += ':' + api.port + '/api/' + api.version + '/sql'
|
||||||
|
|
||||||
var qs = { q: sql }
|
var qs = { q: sql }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user