[examples] fix styling and bad spaces

This commit is contained in:
cronopio 2013-11-07 18:06:12 -05:00
parent a467b7b4a9
commit 6a6dfbb79d
2 changed files with 9 additions and 7 deletions

View File

@ -4,10 +4,11 @@ var httpProxy = require('../lib/http-proxy'),
* Create your proxy server pointing to a secure domain * Create your proxy server pointing to a secure domain
* Enable ssl validation * Enable ssl validation
*/ */
var options = { target : 'https://google.com', var options = {
target : 'https://google.com',
agent : https.globalAgent, agent : https.globalAgent,
headers: {host: '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");

View File

@ -2,9 +2,10 @@ 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'} 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");