mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[examples] fix styling and bad spaces
This commit is contained in:
parent
a467b7b4a9
commit
6a6dfbb79d
@ -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 = {
|
||||||
agent : https.globalAgent,
|
target : 'https://google.com',
|
||||||
headers: {host: 'google.com'}
|
agent : https.globalAgent,
|
||||||
};
|
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");
|
||||||
|
|||||||
@ -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 = {
|
||||||
headers: {host: 'google.com'}
|
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");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user