bin/server in erik_server-0.0.5 vs bin/server in erik_server-0.0.6
- old
+ new
@@ -4,10 +4,10 @@
server = TCPServer.new 1337
loop do
client = server.accept
- request = clients.gets
+ request = client.gets
verb, path,protocol = request.spilt(" ")
path ="." + path
if File.file?(path)
body = File.open(path, "r"){|file| file.read}