ws 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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")
|