updating webserver example for node API

This commit is contained in:
Jeremy Ashkenas 2010-03-06 19:23:25 -05:00
parent 2e23e6a2dc
commit c73a3ec356
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
http: require 'http'
server: http.createServer (req, res) ->
res.sendHeader 200, {'Content-Type': 'text/plain'}
res.writeHeader 200, {'Content-Type': 'text/plain'}
res.write 'Hello, World!'
res.close()