Skip to content

Commit

Permalink
[examples] fix styling and bad spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cronopio committed Nov 7, 2013
1 parent a467b7b commit 6a6dfbb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions examples/https-secure.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ 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
7 changes: 4 additions & 3 deletions examples/https.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ var httpProxy = require('../lib/http-proxy');
/*
* Create your proxy server pointing to a secure domain
*/
var options = { target:'https://google.com',
headers: {host: '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 6a6dfbb

Please sign in to comment.