Skip to content

Commit

Permalink
minor issue related to #57
Browse files Browse the repository at this point in the history
  • Loading branch information
ali1k committed Oct 3, 2018
1 parent d64b92a commit 5818829
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ export default {
let host = endpointParameters.httpOptions.host;
let port = endpointParameters.httpOptions.port;
let path = endpointParameters.httpOptions.path;
//remove the tralining slash at the end of the path if applicable
path = (path.length > 1 && path.slice(-1) ) === '/' ? path.slice(0, -1) : path;
let userPass = '';
if(endpointParameters.httpOptions.username && endpointParameters.httpOptions.password){
userPass = endpointParameters.httpOptions.username + ':' + endpointParameters.httpOptions.password + '@';
Expand Down

0 comments on commit 5818829

Please sign in to comment.