Skip to content

Commit

Permalink
[examples] fixed https examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cronopio committed Nov 7, 2013
1 parent fd42dce commit a467b7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions examples/https-secure.js
Expand Up @@ -4,10 +4,10 @@ var httpProxy = require('../lib/http-proxy'),
* Create your proxy server pointing to a secure domain
* Enable ssl validation
*/
var options = {target : 'https://google.com',
agent : https.globalAgent,
headers: {host: 'google.com'}
};
var options = { target : 'https://google.com',
agent : https.globalAgent,
headers: {host: 'google.com'}
};

var proxyServer = httpProxy.createProxyServer(options);
console.log("Proxy server listening on port 8000");
Expand Down
6 changes: 4 additions & 2 deletions examples/https.js
@@ -1,8 +1,10 @@
var httpProxy = require('http-proxy');
var httpProxy = require('../lib/http-proxy');
/*
* Create your proxy server pointing to a secure domain
*/
var options = {target:'https://google.com'};
var options = { target:'https://google.com',
headers: {host: 'google.com'}
};

var proxyServer = httpProxy.createProxyServer(options);
console.log("Proxy server listening on port 8000");
Expand Down

0 comments on commit a467b7b

Please sign in to comment.