mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +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.
|
# :yaml <- YAML structure.
|
||||||
# :cookiestxt <- Mozilla's cookies.txt format
|
# :cookiestxt <- Mozilla's cookies.txt format
|
||||||
def load(file, format = :yaml)
|
def load(file, format = :yaml)
|
||||||
open(file) { |f|
|
File.open(file) { |f|
|
||||||
case format
|
case format
|
||||||
when :yaml then
|
when :yaml then
|
||||||
load_yaml
|
load_yaml
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue