Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
pac resolve errors
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Jan 9, 2018
1 parent de47f72 commit 8c0a862
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ module.exports = {

determineHost: function(data,pac,cb){
if(pac){
var host = data.host.startsWith('https://') ? data.host.replace('https://','http://') : data.host;
host = !(data.host.startsWith('http://')) ? 'http://'+data.host : data.host;
var host = !(data.host.startsWith('http://') ? 'http://'+data.host : data.host;
console.log('In determine host with data:')
console.dir(data);
console.dir(pac);
Expand Down

0 comments on commit 8c0a862

Please sign in to comment.