[examples] fixed https examples

This commit is contained in:
cronopio 2013-11-07 17:20:28 -05:00
parent fd42dcef01
commit a467b7b4a9
2 changed files with 8 additions and 6 deletions

View File

@ -1,8 +1,10 @@
var httpProxy = require('http-proxy'); var httpProxy = require('../lib/http-proxy');
/* /*
* Create your proxy server pointing to a secure domain * 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); var proxyServer = httpProxy.createProxyServer(options);
console.log("Proxy server listening on port 8000"); console.log("Proxy server listening on port 8000");