bin/erik_server in erik_server-0.0.7 vs bin/erik_server in erik_server-0.0.8
- old
+ new
@@ -5,10 +5,10 @@
server = TCPServer.new 1337
loop do
client = server.accept
request = client.gets
- verb, path,protocol = request.spilt(" ")
+ verb, path, protocol = request.split(" ")
path ="." + path
if File.file?(path)
body = File.open(path, "r"){|file| file.read}
status = "200 OK"