HTTP::CookieJar#load: Use File.open() instead of Kernel#open().

This commit is contained in:
Akinori MUSHA 2012-10-22 15:10:34 +09:00
parent 7fa5b10df6
commit 2a9476707c

View file

@ -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