Permalink
Browse files

Minor doc fixes

  • Loading branch information...
1 parent 3238666 commit e519c66e7375e03e64313f71b64d48769d7d5ffa @eee-c eee-c committed Apr 17, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 README.md
View
@@ -27,20 +27,21 @@ echo 'export PATH=$HOME/.node/dev/bin:$PATH' >> ~/.bashrc
## Usage
```javascript
-var spdy = require('spdy');
+var spdy = require('spdy'),
+ fs = require('fs');
var options = {
key: fs.readFileSync(__dirname + '/keys/spdy-key.pem'),
cert: fs.readFileSync(__dirname + '/keys/spdy-cert.pem'),
ca: fs.readFileSync(__dirname + '/keys/spdy-csr.pem')
};
-spdy.createServer(options, function(req, res) {
+var server = spdy.createServer(options, function(req, res) {
res.writeHead(200);
res.end('hello world!');
});
-spdy.listen(443);
+server.listen(443);
```
## API
@@ -103,7 +104,7 @@ will be sent for each additional stream).
#### Contributors
* [Fedor Indutny](https://github.com/indutny)
-* [Chris Storm](https://github.com/eee-c)
+* [Chris Strom](https://github.com/eee-c)
* [François de Metz](https://github.com/francois2metz)
#### LICENSE

0 comments on commit e519c66

Please sign in to comment.