Skip to content
Permalink
Browse files

[examples] fixed https examples

  • Loading branch information...
cronopio committed Nov 7, 2013
1 parent fd42dce commit a467b7b4a9614a7cbfdc256524e1495616e3d4d9
Showing with 8 additions and 6 deletions.
  1. +4 −4 examples/https-secure.js
  2. +4 −2 examples/https.js
@@ -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");
@@ -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");

0 comments on commit a467b7b

Please sign in to comment.
You can’t perform that action at this time.