Update README.md (#970)

There were errors in the examples highlighted, check issue #969
This commit is contained in:
Subomi Oluwalana 2019-08-22 08:31:44 +01:00 committed by Charlie Robbins
parent 0d9ed366b1
commit c8fa599983

View File

@ -137,7 +137,7 @@ var proxy = httpProxy.createProxyServer({});
var server = http.createServer(function(req, res) {
// You can define here your custom logic to handle the request
// and then proxy the request.
proxy.web(req, res, { target: 'http://127.0.0.1:5060' });
proxy.web(req, res, { target: 'http://127.0.0.1:5050' });
});
console.log("listening on port 5050")
@ -175,7 +175,7 @@ var server = http.createServer(function(req, res) {
// You can define here your custom logic to handle the request
// and then proxy the request.
proxy.web(req, res, {
target: 'http://127.0.0.1:5060'
target: 'http://127.0.0.1:5050'
});
});