Skip to content

Commit 6a6dfbb

Browse files
committed
[examples] fix styling and bad spaces
1 parent a467b7b commit 6a6dfbb

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

examples/https-secure.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ var httpProxy = require('../lib/http-proxy'),
44
* Create your proxy server pointing to a secure domain
55
* Enable ssl validation
66
*/
7-
var options = { target : 'https://google.com',
8-
agent : https.globalAgent,
9-
headers: {host: 'google.com'}
10-
};
7+
var options = {
8+
target : 'https://google.com',
9+
agent : https.globalAgent,
10+
headers: {host: 'google.com'}
11+
};
1112

1213
var proxyServer = httpProxy.createProxyServer(options);
1314
console.log("Proxy server listening on port 8000");

examples/https.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ var httpProxy = require('../lib/http-proxy');
22
/*
33
* Create your proxy server pointing to a secure domain
44
*/
5-
var options = { target:'https://google.com',
6-
headers: {host: 'google.com'}
7-
};
5+
var options = {
6+
target:'https://google.com',
7+
headers: {host: 'google.com'}
8+
};
89

910
var proxyServer = httpProxy.createProxyServer(options);
1011
console.log("Proxy server listening on port 8000");

0 commit comments

Comments
 (0)