1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

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

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()