Skip to content

Commit 03880d8

Browse files
committed
[docs] typos, typos everywhere...
1 parent 0393b5d commit 03880d8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ http.createServer(function (req, res) {
8686

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

9191
```js
9292
var http = require('http'),
@@ -114,7 +114,7 @@ server.listen(5050);
114114

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

117-
```
117+
```js
118118
var http = require('http'),
119119
httpProxy = require('http-proxy');
120120

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

164-
//
165-
// Tell the proxy to listen on port 8000
166-
//
167164
proxy.listen(8005);
168165

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

186183
```

0 commit comments

Comments
 (0)