function checkPathParsed (uri) {
  if (uri.charAt(uri.length-1) === '/') {
      uri = uri.slice(0, -1);
  }
  if (path.charAt(0) !== '/') {
    path = '/' + path;
  }
  var myUrl = parseURL(uri);
  return myUrl.pathname;
}

function checkPathParsed (uri) {
  if (uri.charAt(uri.length-1) === '/') {
      uri = uri.slice(0, -1);
  }
  if (uri.charAt(0) !== '/') {
    uri = '/' + uri;
  }
  var myUrl = parseURL(uri);
  return myUrl.pathname;
}

Refactor to ensure pathnames are all the same
Refactor to ensure pathnames are all the same


Former-commit-id: cfa4fec100e8597c20ce17f7cce349d065f899ca