mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-28 09:25:53 +00:00
HTTP::CookieJar#load: Use File.open() instead of Kernel#open().
This commit is contained in:
parent
7fa5b10df6
commit
2a9476707c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue