Showing
2 changed files
with
2 additions
and
2 deletions
| ... | @@ -104,7 +104,7 @@ var Repository = (function () { | ... | @@ -104,7 +104,7 @@ var Repository = (function () { |
| 104 | _this.rest.scanEnvironment(response.local_ips) | 104 | _this.rest.scanEnvironment(response.local_ips) |
| 105 | .then(function (node) { | 105 | .then(function (node) { |
| 106 | var res = _this.parseUrl(response.db_url); | 106 | var res = _this.parseUrl(response.db_url); |
| 107 | - resolve(_this.prepare(res.protocol + '://' + res.user + ':' + res.pass + '@' + node.ip + ':' + node.couchPort + '/' + res.orig_db_name)); | 107 | + resolve(_this.prepare('http://' + node.ip + ':' + node.couchPort + '/' + res.orig_db_name)); |
| 108 | }).catch(function () { | 108 | }).catch(function () { |
| 109 | resolve(_this.prepare(response.db_url)); | 109 | resolve(_this.prepare(response.db_url)); |
| 110 | }); | 110 | }); | ... | ... |
| ... | @@ -99,7 +99,7 @@ export class Repository { | ... | @@ -99,7 +99,7 @@ export class Repository { |
| 99 | this.rest.scanEnvironment(response.local_ips) | 99 | this.rest.scanEnvironment(response.local_ips) |
| 100 | .then(node => { | 100 | .then(node => { |
| 101 | let res = this.parseUrl(response.db_url); | 101 | let res = this.parseUrl(response.db_url); |
| 102 | - resolve(this.prepare(res.protocol + '://' + res.user + ':' + res.pass + '@' + node.ip + ':' + node.couchPort + '/' + res.orig_db_name)); | 102 | + resolve(this.prepare('http://' + node.ip + ':' + node.couchPort + '/' + res.orig_db_name)); |
| 103 | }).catch(() => { | 103 | }).catch(() => { |
| 104 | resolve(this.prepare(response.db_url)); | 104 | resolve(this.prepare(response.db_url)); |
| 105 | }); | 105 | }); | ... | ... |
-
Please register or login to post a comment