Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
thejhh committed Dec 24, 2012
1 parent 8431a7b commit 3213a5e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var app = connect()
Example usage to build middlewares with promises
------------------------------------------------

`deferred_listener()` can be used also when building new your own
`deferred_listener()` can be used also when building your own new
middleware.

Let's build a simple middleware that fetches some data from the
Expand All @@ -80,12 +80,12 @@ function fetch_file(file, key) {

```javascript
var app = connect()
.use(deferred_listener(connect.logger('dev')))
.use(deferred_listener(connect.static('public')))
.use(connect.logger('dev'))
.use(connect.static('public'))
.use(fetch_file("test.json", "test"))
.use(deferred_listener(function(req, res){
.use(function(req, res){
res.end('hello world!\n\n' + 'test.foo = ' + req.file.test.foo + "\n" );
}))
})
.listen(3000);
```

Expand Down

0 comments on commit 3213a5e

Please sign in to comment.