Merge branch 'fix_example_webserver' of git://github.com/hugs/coffee-script

This commit is contained in:
Jeremy Ashkenas
2010-02-25 18:56:11 -05:00

View File

@@ -4,9 +4,9 @@ http: require 'http'
server: http.createServer (req, res) ->
res.sendHeader 200, {'Content-Type': 'text/plain'}
res.sendBody 'Hello, World!'
res.finish()
res.write 'Hello, World!'
res.close()
server.listen 3000
puts "Server running at http://localhost:3000/"
puts "Server running at http://localhost:3000/"