summaryrefslogtreecommitdiff
path: root/tool/lib/webrick/httputils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/lib/webrick/httputils.rb')
-rw-r--r--tool/lib/webrick/httputils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/webrick/httputils.rb b/tool/lib/webrick/httputils.rb
index f1b9ddf9f0..e21284ee7f 100644
--- a/tool/lib/webrick/httputils.rb
+++ b/tool/lib/webrick/httputils.rb
@@ -112,7 +112,7 @@ module WEBrick
def load_mime_types(file)
# note: +file+ may be a "| command" for now; some people may
# rely on this, but currently we do not use this method by default.
- open(file){ |io|
+ File.open(file){ |io|
hash = Hash.new
io.each{ |line|
next if /^#/ =~ line