Skip to content

Commit

Permalink
[docs] typos, typos everywhere...
Browse files Browse the repository at this point in the history
  • Loading branch information
cronopio committed Dec 13, 2013
1 parent 0393b5d commit 03880d8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ http.createServer(function (req, res) {

#### Setup a stand-alone proxy server with custom server logic
This example show how you can proxy a request using your own HTTP server
and also you can put your own logic to hanlde the request.
and also you can put your own logic to handle the request.

```js
var http = require('http'),
Expand Down Expand Up @@ -114,7 +114,7 @@ server.listen(5050);

#### Setup a stand-alone proxy server with latency

```
```js
var http = require('http'),
httpProxy = require('http-proxy');

Expand Down Expand Up @@ -161,9 +161,6 @@ var proxy = httpProxy.createServer({
target:'http://localhost:9005'
});

//
// Tell the proxy to listen on port 8000
//
proxy.listen(8005);

//
Expand All @@ -180,7 +177,7 @@ proxy.on('error', function (err, req, res) {
// Listen for the `proxyRes` event on `proxy`.
//
proxy.on('proxyRes', function (res) {
console.log('RAW Response from the target', res.headers);
console.log('RAW Response from the target', JSON.stringify(res.headers, true, 2));
});

```
Expand Down

0 comments on commit 03880d8

Please sign in to comment.