mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[doc] add missing {} to make an object
This commit is contained in:
parent
11315e63fa
commit
843901eeeb
@ -335,11 +335,11 @@ var http = require('http'),
|
|||||||
//
|
//
|
||||||
// Create an instance of node-http-proxy
|
// Create an instance of node-http-proxy
|
||||||
//
|
//
|
||||||
var proxy = new httpProxy.HttpProxy(
|
var proxy = new httpProxy.HttpProxy({
|
||||||
target: {
|
target: {
|
||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
port: 8000
|
port: 8000
|
||||||
});
|
}});
|
||||||
|
|
||||||
var server = http.createServer(function (req, res) {
|
var server = http.createServer(function (req, res) {
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user