Permalink
Browse files

README++

Part of #3.
  • Loading branch information...
1 parent 049684e commit 41bf004669b20b65812c81015fc7b237a427b95e @TooTallNate committed Dec 15, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 README.md
View
@@ -41,12 +41,13 @@ our `hello.cgi` script will be invoked, and the response will be sent back to th
HTTP client:
``` javascript
-var http = require('http');
var cgi = require('cgi');
+var http = require('http');
+var path = require('path');
+
+var script = path.resolve(__dirname, 'hello.cgi');
-http.createServer(
- cgi('hello.cgi')
-).listen(80);
+http.createServer( cgi(script) ).listen(80);
```
This will set up a CGI handler with the default options.

0 comments on commit 41bf004

Please sign in to comment.