You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/07/18 19:36:19 UTC

[GitHub] Antonio-Maranhao closed pull request #1106: Fix how local creds are checked when creating replications

Antonio-Maranhao closed pull request #1106: Fix how local creds are checked when creating replications
URL: https://github.com/apache/couchdb-fauxton/pull/1106
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/app/addons/replication/components/newreplication.js b/app/addons/replication/components/newreplication.js
index 8a1fd7f05..38ca807b5 100644
--- a/app/addons/replication/components/newreplication.js
+++ b/app/addons/replication/components/newreplication.js
@@ -12,7 +12,7 @@
 
 import base64 from 'base-64';
 import React from 'react';
-import app from '../../../app';
+import Helpers from '../../../helpers';
 import {json} from '../../../core/ajax';
 import FauxtonAPI from '../../../core/api';
 import {ReplicationSource} from './source';
@@ -101,7 +101,7 @@ export default class NewReplicationController extends React.Component {
   }
 
   checkCredentials(username, password) {
-    return json(app.host + '/', 'GET', {
+    return json(Helpers.getServerUrl('/'), 'GET', {
       credentials: 'omit',
       headers: {
         'Authorization':'Basic ' + base64.encode(username + ':' + password)


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services