ws 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ws.rb +1 -0
- metadata +1 -1
data/lib/ws.rb
CHANGED
@@ -13,6 +13,7 @@ module WS
|
|
13
13
|
puts "#{Time.now.inspect}: Sending #{file_path} to client." if options[:verbose]
|
14
14
|
conn.print get_header("200/OK", mime_type)
|
15
15
|
conn.print file_handle.read()
|
16
|
+
file_handle.close
|
16
17
|
rescue Errno::ENOENT
|
17
18
|
puts "#{Time.now.inspect}: Not Found: #{file_path}" if options[:verbose]
|
18
19
|
conn.print get_header("404/NOT FOUND", "text/html")
|