diff --git a/examples/https-secure.js b/examples/https-secure.js index 72bcbb6..1027cd4 100644 --- a/examples/https-secure.js +++ b/examples/https-secure.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"); diff --git a/examples/https.js b/examples/https.js index 7f0aed3..cccc246 100644 --- a/examples/https.js +++ b/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");