Skip to content

Commit d15bba4

Browse files
committed
update to docs and package.json
1 parent b195a16 commit d15bba4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Let's suppose you were running multiple http application servers, but you only w
3535
var http = require('http'),
3636
httpProxy = require('http-proxy');
3737

38-
httpProxy.createServer('9000', 'localhost').listen(8000);
38+
httpProxy.createServer(9000, 'localhost').listen(8000);
3939

4040
http.createServer(function (req, res){
4141
res.writeHead(200, {'Content-Type': 'text/plain'});
@@ -54,7 +54,7 @@ see the [demo](http://github.com/nodejitsu/node-http-proxy/blob/master/demo.js)
5454
// create a proxy server with custom application logic
5555
httpProxy.createServer(function (req, res, proxy) {
5656
// Put your custom server logic here
57-
proxy.proxyRequest('9000', 'localhost', req, res);
57+
proxy.proxyRequest(9000, 'localhost', req, res);
5858
}).listen(8000);
5959

6060
http.createServer(function (req, res){

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
22
"name": "http-proxy",
33
"description": "A full-featured http reverse proxy for node.js",
4-
"version": "0.1.5",
4+
"version": "0.1.6",
55
"author": "Charlie Robbins <[email protected]>",
66
"contributors": [
77
{ "name": "Marak Squires", "email": "[email protected]" }
88
],
9+
"repository": {
10+
"type": "git",
11+
"url": "http://github.com/nodejitsu/node-http-proxy.git"
12+
},
913
"keywords": ["reverse", "proxy", "http"],
1014
"dependencies": {
1115
"colors": ">= 0.3.0"

0 commit comments

Comments
 (0)