diff options
Diffstat (limited to 'lib/webrick/httpauth/htdigest.rb')
-rw-r--r-- | lib/webrick/httpauth/htdigest.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/webrick/httpauth/htdigest.rb b/lib/webrick/httpauth/htdigest.rb index 1b42c02dfa..c35b38433b 100644 --- a/lib/webrick/httpauth/htdigest.rb +++ b/lib/webrick/httpauth/htdigest.rb @@ -40,7 +40,7 @@ module WEBrick @digest = Hash.new @mutex = Thread::Mutex::new @auth_type = DigestAuth - open(@path,"a").close unless File::exist?(@path) + File.open(@path,"a").close unless File.exist?(@path) reload end @@ -51,7 +51,7 @@ module WEBrick mtime = File::mtime(@path) if mtime > @mtime @digest.clear - open(@path){|io| + File.open(@path){|io| while line = io.gets line.chomp! user, realm, pass = line.split(/:/, 3) |