Skip to content

Commit

Permalink
Change order of res.setEncoding in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
moll committed May 4, 2014
1 parent 214e302 commit 5b4061a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ mitm.on("request", function(req, res) {
})

Http.get("http://example.org", function(res) {
res.setEncoding("utf8")
res.statusCode // => 402
res.setEncoding("utf8")
res.on("data", console.log) // => "Pay up, sugar!"
})
```
Expand Down

0 comments on commit 5b4061a

Please sign in to comment.