Fixed web_server example to be compatible with Node v0.1.30
This commit is contained in:
parent
10d335ccb1
commit
6bc61ec1a1
|
@ -4,8 +4,8 @@ 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue