diff --git a/lib/http/cookie_jar.rb b/lib/http/cookie_jar.rb index 595bb5a..533ec72 100644 --- a/lib/http/cookie_jar.rb +++ b/lib/http/cookie_jar.rb @@ -117,7 +117,7 @@ class HTTP::CookieJar # :yaml <- YAML structure. # :cookiestxt <- Mozilla's cookies.txt format def load(file, format = :yaml) - open(file) { |f| + File.open(file) { |f| case format when :yaml then load_yaml