Skip to content

Commit

Permalink
update to docs and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Aug 5, 2010
1 parent b195a16 commit d15bba4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Let's suppose you were running multiple http application servers, but you only w
var http = require('http'),
httpProxy = require('http-proxy');

httpProxy.createServer('9000', 'localhost').listen(8000);
httpProxy.createServer(9000, 'localhost').listen(8000);

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

http.createServer(function (req, res){
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "http-proxy",
"description": "A full-featured http reverse proxy for node.js",
"version": "0.1.5",
"version": "0.1.6",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
"contributors": [
{ "name": "Marak Squires", "email": "marak.squires@gmail.com" }
],
"repository": {
"type": "git",
"url": "http://github.com/nodejitsu/node-http-proxy.git"
},
"keywords": ["reverse", "proxy", "http"],
"dependencies": {
"colors": ">= 0.3.0"
Expand Down

0 comments on commit d15bba4

Please sign in to comment.