README.md in em-http-server-0.1.5 vs README.md in em-http-server-0.1.6
- old
+ new
@@ -39,9 +39,14 @@
response.content_type 'text/html'
response.content = 'It works'
response.send_response
end
+ def http_request_errback e
+ # printing the whole exception
+ puts e.inspect
+ end
+
end
EM::run do
EM::start_server("0.0.0.0", 80, HTTPHandler)
end